Add class to skip lazy loading
-
If a website is being optimised with lazy loading (i.e. via W3TC), the masonry layout breaks due to off-screen images only being loaded when they come into the viewport.
I can confirm adding
class="skip-lazy"
to the<img />
tags ings-pinterest-portfolio/gs-pinterest-assets/includes/templates/gs_pinterest_structure_one.php
fixes the issue.It would be useful if the plugin could add support for a “lazyload” attribute, i.e.
lazyload="1"
orlazyload="0"
, to toggle such a class on a case-by-case basis.I had tried to find a GitHub repository to create a PR but couldn’t find one.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add class to skip lazy loading’ is closed to new replies.