What AuditX checks
The scan reads the HTML of the page you scanned and finds every iframe whose src points to a known video host. The hosts are youtube.com, youtube-nocookie.com, youtu.be, vimeo.com, dailymotion.com, wistia.com, wistia.net, players.brightcove.net, vzaar.com, sproutvideo.com, jwplatform.com, jwpsrv.com, streamable.com, loom.com and vidyard.com. The host must match exactly or be a subdomain of one of them. An embed is lazy only when its loading attribute is lazy. The check passes when every such embed is lazy. It warns when at least one is not, and the message counts them. It never fails. If the page has no such iframe, the result is an info note, which does not lower the score. The scan does not look at where on the page the player sits. A player at the top of the page counts as a warning in the same way as one near the footer. It also does not see an iframe that is added by a script after the page loads, or a still image that is swapped for the player on a click. A warning counts toward the review score at 40 percent of what a fail would cost.
Why it matters
web.dev explains that visitors pay the cost of downloading data and heavy JavaScript for each frame even if they never scroll to it, and shows that lazy-loading YouTube embeds saves around 500 KB on the first load.
MDN describes loading="lazy" on an iframe as deferring the load until it is near the viewport, which avoids fetching a frame the visitor may never reach. web.dev also says embeds are often below the viewport, which makes them good candidates. A player in the first screen is a different case.
How to fix it
- Add loading="lazy" to each embedded video iframe that sits below the first screen.
- Leave a player in the very top of the page as it is if it is the main content, and treat the warning for it as a note.
- For a page with many videos, consider showing a thumbnail with a play button and loading the player only on a click.
- Give the iframe a width and a height so the page does not jump when the player appears.
<iframe src="https://www.youtube.com/embed/VIDEO_ID" loading="lazy" width="560" height="315" title="Product tour" allowfullscreen></iframe>
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my site