[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/wd/ - Web Design

Professional design discussions, frameworks & UI/UX
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1775651665963.jpg (172 KB, 1880x1253, img_1775651657215_05qxnruk.jpg)ImgOps Exif Google Yandex

b8dcc No.1442

are you guilty of this?: Lazy loading images is great but did ya know it can backfire if not done right?
<img src="bigimage. jpg"data-src="/path/to/lazyload/image"alt="class='lazy'>

>Just lazy load everything, no biggie.
But what about your site's first impression?
First Meaningless Placeholder Load Time: 20s
That's right. Some pages were loading placeholders for seconds before the real images even started to appear. Figma,Lighthouse: Both flagged these as major issues
>Just use default settings, it works fine.
Wrong!
Here's what fixed things:
// JavaScript snippetconst lazyLoader = new LazyLoad({threshold: 150,});lazyLoader. init();

First Load Time Down by Half.
Do you have similar performance hiccups? Share your tips!

b8dcc No.1443

File: 1775651776895.jpg (140.74 KB, 1080x717, img_1775651762802_8maw3gqr.jpg)ImgOps Exif Google Yandex

>>1442
really struggling with lazy loading images on mobile vs desktop - anyone have a simple solution? i've tried adding media queries but it feels clunky and not ideal for performance optimization ⚡



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">