Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    There are many methods in WP Retina 2x, if WP Rocket doesn’t handle any of them then it is an issue (not a bug) on their side. But not automatically, this is not all easy to do. Check on Internet and you will see that many people discussed the subject.

    https://gist.github.com/sheadawson/dd4891fa13f82f6a9b20
    https://github.com/scottjehl/picturefill/issues/99
    http://stackoverflow.com/questions/20507164/is-there-a-way-to-combine-the-lazyload-js-library-with-picturefill

    Please remember that WP Retina 2x generates the images, re-write the HTML correctly BUT the scripts (PictureFill and Retina.js) are third parties. They aren’t mine, my plugin loads them for you automatically. Lazy loading are also scripts that attempt to do the same kind of overriding operations as those retina scripts and I am not surprised they collide.

    The best would be to find a lazy plugin that works with the method you are using, PictureFill for example, and it seems people tried that already. There is nothing more I can do on my side, but if PictureFill adds an option for lazy-loading I will definitely make it available on my plugin too.

    Thread Starter iSaumya

    (@isaumya)

    Hmm…. Almost all lazy load will colide with piicture fill. I’ve also tried IMG rewrite. but didnt work either.

    Plugin Author Jordy Meow

    (@tigroumeow)

    It’s normal, it’s difficult to handle. I don’t do any lazy load on my websites, that’s too tricky.

    From my point of view, lazy-load should be handled naturally by browsers, maybe by using browsers plugins. The users should make that choice, or the browser could do it depending on the speed. If the browser do it, then my plugin will be handled without any issue too.

    Another thing: Lazy-loading is a bit annoying for people with fast internet. I have to wait for a image to load, but it could have been loaded while I was looking at the top of the page… well, it’s not super necessary imho.

    Thread Starter iSaumya

    (@isaumya)

    Thanks man for your explanation.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Update on that. The Pro version now include a modified PictureFill with lazy loading 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issue with WP Rocket plugin’ is closed to new replies.