Comment

Comment by weinzierl

Very first tip:

"Performance tip. You can use the loading=lazy attribute to defer the loading of the image until the user scrolls to them."

Can someone explain to me when this is useful?

As a content consumer I'm frequently annoyed, when I have to wait for images to load while scrolling.

As a content creator I understand the idea that I might potentially save the consumer some bandwidth, given they might - against all odds and for whatever reason - decide not to scroll down. Kidding aside I think that as a creator I should optimize for the readers that are thoroughly interested in my whole content and therefore I should preload and not lazy load.

parent weinzierl 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton