Skip to content

Switch lazy-loading of images to <img> property

Guillaume Gaisne requested to merge 5-lazy-loading-the-images-and-videos into main

Closes #5 (closed) No extensive use of the useInView hook so we keep it simple

The structure to lazy-load the video with useInView is kept for now. If this structure is removed, two situations arise: -preload="none" needs a click to load the video but nothing else than a black box with a 'play' button signifies the presence of a video there. -preload="metadata" is loading the video directly but with the first frame of the video showing up, helping to notice the presence of a video.

Merge request reports