• jjds

    (@jjds)


    Hi there,

    I’m trying to track down some (touch) srolling performance issues with a customer site and found that Lazy Loader adds quite a bit of performance decrease to the list.
    I found it’s mainly because of a whole bunch of event listeners are added, many of them being non-passive scroll events by the lazysizes js script. The thing is: Lazysizes is not even enabled in the settings, but it’s loaded anyway.
    Is there a way to remove it or at least make the event listeners passive (would be a good idea anyway)?

    Besides that, I found your plugin being the one that works best under several different conditions, so keep it up! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Florian Brinkmann

    (@florianbrinkmann)

    Hi @jjds,

    Besides that, I found your plugin being the one that works best under several different conditions, so keep it up! ??

    Thanks, great to hear that ??

    The thing is: Lazysizes is not even enabled in the settings, but it’s loaded anyway.

    Do you mean the checkbox in the post edit view to disable the plugin on a per-post/page-base? If so: Yes, that should also stop the script from being loaded, you are right. I will fix that in the next update ??

    make the event listeners passive (would be a good idea anyway)?

    That is something you would need to propose in the lazysizes repo, because I will not make modifications in the library ??

    Best,
    Florian

    Thread Starter jjds

    (@jjds)

    I will fix that in the next update ??

    Alright, that will help.

    Thanks!

    Plugin Author Florian Brinkmann

    (@florianbrinkmann)

    Hey @jjds,

    it took some time, but the beta on Github (https://github.com/florianbrinkmann/lazy-loading-responsive-images/releases/tag/v4.0.2-beta.1 – the lazy-loading-responsive-images.zip) also includes the fix for that and should remove the lazy loading assets from sites where it is disabled.

    Best,
    Florian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘lazysizes loaded even if disabled’ is closed to new replies.