I'm trying to implement lazy loading function to our development site. I'm using Lazy Loader XT plugin for this. However, i need to change the "src" attribute of the <img> tag to "src-data", here on an example page, that shows all the posts in a category:
I have tried parsing html, using "the_content" and "post_thumbnail_html" filters, that didn't work.
To be more specific, the plugin "seemed" to work, but when I took a look at the source code, I saw that instead of loading a placeholder and download the image when the browser can see it, the plugin downloaded every image while loading the page.
Could you please help me how to do this right. It will make a very big performance impact on our site. Thanks.
I have tried parsing HTML with "the_content" filter