mozilla/chronicle

Lazy load images?

Opened this issue · 1 comments

Currently, when I load up Chronicle (dev server), it takes about 77 requests, 4.4 MB transferred, and 3.85s to fully load (which is an extreme best case, sometimes it takes upwards of 15-20s to fully load all the images since they are currently scraped on the fly -- see #259).

Not sure if we want to add some lazy loading image logic so that thumbnails are only loaded once you scroll down and they are in the viewport.

Pros: fewer initial network requests.
Cons: images loading as you scroll.

I guess other "Pro" for pre-scraping images is that they can be run through some imagemin task to reduce pixel bloat (considering it is 82-84% of the page's weight).

chronicle_and__case_or__switch_statement__ issue__554 sass_sass_and_fix_build___added_optional_user_param_to_create_db_sh 077a000 _mozilla_chronicle

chronicle_and__case_or__switch_statement__ issue__554 sass_sass_and_fix_build___added_optional_user_param_to_create_db_sh 077a000 _mozilla_chronicle

chronicle_and__case_or__switch_statement__ issue__554 sass_sass_and_fix_build___added_optional_user_param_to_create_db_sh 077a000 _mozilla_chronicle

chronicle_and__case_or__switch_statement__ issue__554 sass_sass_and_fix_build___added_optional_user_param_to_create_db_sh 077a000 _mozilla_chronicle