Native Lazy Loading

IntersectionObserver has made lazy loading a lot easier and more efficient than it used to be, but to do it really right you still gotta remove the src and such, which is cumbersome. It’s definitely not as easy as:

<img src="celebration.jpg" loading="lazy" alt="..." />

Addy Osmani says it’s coming in Chrome 75:

The loading attribute allows a browser to defer loading offscreen images and iframes until users scroll near them. loading supports three values:

  • lazy: is a good candidate

Read article

The post Native Lazy Loading appeared first on CSS-Tricks.

Dark Energy Spectroscopic Instrument lenses get their first look at space

Scientists are one step closer to precisely 3D mapping the galaxy and better understanding dark energy. For years, a team of more than 70 international organizations have been building the Dark Energy Spectroscopic Instrument (DESI), which wil…