Merri
Member
Current XenForo 2.3 sets loading="lazy" attribute on all avatars, emojis, and smilies. Here are reasons why this attribute is unnecessary:
The simplest solution is to not do lazy loading on these small images.
Benefits
Better user experience: less blinking for images that are already in cache.
Drawbacks
Biggest forums might see their bandwidth usage go up, but hard to say.
- These are small images. Loading them wasn't a problem in the late dial-up modem era of the internet.
- These images repeat a lot, reducing the point of loading the lazily: why load lazily an image that exists multiple times on a page?
- There can be a lot of these images in the first immediate view, for example on the new posts page.
- Lazy loading makes these images visibly blink into the page upon each page load. But when lazy loading is disabled the images are there immediately on first render.
The simplest solution is to not do lazy loading on these small images.
Benefits
Better user experience: less blinking for images that are already in cache.
Drawbacks
Biggest forums might see their bandwidth usage go up, but hard to say.
Upvote
2