Native iframe lazy-loading is now an…

Native iframe lazy-loading is now an HTML standard and is currently supported in Chrome. As the name implies, this technology defers loading offscreen iframes until a user scrolls near them. 💤

For example, by default, the Facebook Like plugin (using their JavaScript SDK) pulls in ~215KB of resources to embed their “like” button in a page. 197KB of this is JavaScript. Now that code doesn’t have to load until you scroll and see it:

“The plugin may appear at the end of an article or near the end of a page, so loading it eagerly when it’s offscreen may be suboptimal.”

Similar Posts