250 / Steam-250

:video_game: Generates the Steam 250 website.
https://steam250.com
GNU Affero General Public License v3.0
54 stars 7 forks source link

Images load in DOM order instead of viewing order #13

Closed Bilge closed 3 years ago

Bilge commented 6 years ago

It seems Firefox (and probably other browsers) load images in the order they're listed in the DOM. This causes many images above the fold to load late on the desktop layout, which pulls the list of risers and fallers from the bottom of the page to sit alongside the main ranking in a second column. Images should load in the order in which they can be viewed, for optimum user experience.

Bilge commented 3 years ago

Fixed with lazy loading in https://github.com/250/Steam-250/commit/6ca95765d116da5963c5912ceefec909d5729143.