Advanced HTML & CSS
Q94 / 100

What is the significance of the "loading" attribute value "lazy" on an <iframe>, and what is a potential downside if applied to above-the-fold content?

Correct! Well done.

Incorrect.

The correct answer is B) It defers loading the iframe's content until it is near the viewport, improving initial page load performance; however, applying it to above-the-fold iframes can delay the appearance of important visible content, hurting perceived performance

B

Correct Answer

It defers loading the iframe's content until it is near the viewport, improving initial page load performance; however, applying it to above-the-fold iframes can delay the appearance of important visible content, hurting perceived performance

Explanation

Lazy loading is beneficial for off-screen resources to reduce initial load cost, but applying it to content visible immediately on load can counterproductively delay rendering of that content.

Progress
94/100