Exclude Images Using data-no-lazy=”1″
-
I have tried the Lazy Load by WP Rocket plugin — and the improvement in page load times is impressive. However, there are four images on my home page that I would like to exclude from lazy loading.
Your plugin FAQs, state that images can be excluded by “Simply add a data-no-lazy=”1″ property” to the img tag; and then using the filter rocket_lazyload_excluded_attributes
Two support requests:
(1) please explain how and where exactly the data-no-lazy=”1″ attribute is set in WordPress and
(2) please provide the code snippet that I need to add to the functions.php file to filter out / exclude particular images.Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Exclude Images Using data-no-lazy=”1″’ is closed to new replies.