uiowa / uids

UI Design System
http://uids.brand.uiowa.edu
7 stars 1 forks source link

Lazy loading improvements #806

Open GaryRidgway opened 1 year ago

GaryRidgway commented 1 year ago

Recently while working on the admissions viewbook, we noticed that lazy loaded images that control the size of containers could possible set the size of that container to not have dimensions in one or more axises. We should implement the following, using the images native height and width as initial values, to ensure that there are inherent dimensions to the image to ensure it is flagged for loading.

https://css-tricks.com/do-this-to-improve-image-loading-on-your-website/