Late loading of images on scroll #593
Labels
🕹 aspect: interface
Concerns end-users' experience with the software
🛠 goal: fix
Bug fix
🟨 priority: medium
Not blocking but should be addressed soon
🧱 stack: frontend
Related to the Nuxt frontend
💬 talk: discussion
Open for discussions and feedback
🟨 tech: javascript
Involves JavaScript
Description
The search grid uses the native
loading: lazy
attribute for images to improve performance by not loading the images below the viewport.This is harming user experience, especially on mobile, because the user sees flickering of images that are being loaded and replace the gray squares on the screen when they scroll, instead of a grid of loaded images.
Screen_Recording_20220319-135722_Chrome.mp4
It is impossible to change the threshold of visibility for native lazy loading. In addition, it differs between different browsers.
It is better to implement custom lazy-loading based on an Intersection Observer, and load the images for one screen below the viewport to ensure that the user always sees loaded images.
Reproduction
Environment
This happens both on the desktop and the mobile, but it is worse on a mobile device with a slow network connection.
Resolution
The text was updated successfully, but these errors were encountered: