- Published at
- Updated at
- Reading time
It's speedy TIL time! Did you know the
Now, you do. 😉
Why doesn't lazy load work without JS? There's only one reason why we can't have nice things: of course, it's for tracking prevention.
loading MDN documentation explaining the behavior:
And if you really want to get into this topic, here's the related spec describing when
loading="lazy" should work.
And just to be clear, because some folks were confused: images will still load when JS is disabled. It's only the deferred loading that won't work.
Yes? Cool! You might want to check out Web Weekly for more quick learnings. The last edition went out 3 days ago.