article thumbnail

A Deep Dive into Native Lazy-Loading for Images and Frames

CSS - Tricks

Until now, developers like ourselves have had to use JavaScript (whether it’s a library or something written from scratch) in order to achieve lazy-loading. Most libraries work like this: The initial, server-side HTML response includes an img element without the src attribute so the browser does not load any data.

Traffic 58