tjikko-studio / components

Component library for Tjikko Studio apps
0 stars 0 forks source link

Defer offscreen images #231

Open shawninder opened 2 years ago

shawninder commented 2 years ago

It can be a bit tricky to know which images will be offscreen on initial page load, especially with the highly dynamic nature of the content and the wild variety of screen sizes, not to mention pages that auto-scroll on load (with links like https://site.com/page#ANCHOR).

Still, maybe we can achieve this in at least some cases? Perhaps an option on blocks that render images to add loading=lazy to them would at least make it possible for those cases where we're sure the image won't make it to the initial render, or for images that are optional to the function of the site…

ktryndchrs commented 2 years ago

Funny… site.com brings to the salesforce website