[NSFW] VPI problem manually | WordPress.org

[ad_1]

Hello, I am working on a project where a grid of images is reordered randomly (and it is important that it stays that way) so I am working on the lazy load VPI manually

Using the ‘litespeed_buffer_before’ filter I have managed to insert data-no-lazy=”1″ to the first 8 images of the grid, which would be enough on practically all devices or at least the vast majority

The thing is that Google keeps alerting me to a VPI problem. I am doing something wrong? Am I avoiding lazy loading correctly on these images? Did I choose the wrong filter?

The code for the images looks like this (from the home):

<img data-no-lazy="1" decoding="async" width="323" height="600" loading="lazy" src=...>

Google warning

Thank you

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer