WordPress.org

Ready to get started?Download WordPress

Forums

BJ Lazy Load
If scroll fast, images fail loading (15 posts)

  1. synthview
    Member
    Posted 1 year ago #

    Hello,
    your plugin work like magic on my local server, but on a remote one I notice if I scroll to fast the page, not all images load, and I get just the alt text for many others, like as the connexion was broken or timeout… strange thing.

    you can check it here : http://weddings.davidbacher.com/emotions/

    http://wordpress.org/extend/plugins/bj-lazy-load/

  2. synthview
    Member
    Posted 1 year ago #

    with retina images is even worst :(

  3. Bjørn Johansen
    Member
    Plugin Author

    Posted 1 year ago #

    What OS and browser are you using? I've tried a few times in different browsers, but don't get the same results as you are describing.

  4. synthview
    Member
    Posted 1 year ago #

    Firefox on Mac, but I've spoken with the server administrator and they say it's an Apache memory problem. It seems your plugin is memory demanding maybe

  5. synthview
    Member
    Posted 1 year ago #

    this file is listed in the server’s error log
    (12)Cannot allocate memory: […] /wp-content/plugins/bj-lazy-load/thumb.php

  6. Bjørn Johansen
    Member
    Plugin Author

    Posted 1 year ago #

    Image processing needs a bit of memory, yes. Unfortunately, there's nothing I can do about that.

    If you increase the memory_limit value in your php.ini, your problem should be fixed. Just out of curiousness, what is it currently at?

  7. synthview
    Member
    Posted 1 year ago #

    I can't ;(
    currently it seems to be at 128M

  8. synthview
    Member
    Posted 1 year ago #

    But I dont' know if it comes from that. I've set 64M on my local server, disabled browser cache and everything works fine

  9. synthview
    Member
    Posted 1 year ago #

    another issue I've spotted with the lazyload : my images are 100% wide and has no height or width in html output.

    I have the feeling when your lazy load is on, the images get a sort of 0 (or something small) height. That means as I scroll, a huge number or images starts loading, making the lazyload less useful and not fluid. any fix for that?
    This issue happens on an iPhone, but not in a desktop browser…

  10. synthview
    Member
    Posted 1 year ago #

    Hi Bjørn,
    deactivating both retina and responsive options the site work better (no out of ram).

    However I notice lazyload doesn't kindly fade-in images at 1st load, but only the 2nd when they're (I suppose) in the browser cache.

    And lazyload does not work on Safari!!

  11. Bjørn Johansen
    Member
    Plugin Author

    Posted 1 year ago #

    Deactivating those options will help you, as you won't have to do any special processing of the images.

    You are correct on the fadein. This will be changed in an upcoming release.

    It works very well in Safari for all my sites – can you provide me with more details?

  12. synthview
    Member
    Posted 1 year ago #

    temporarily reactivated the plugin just to let you see
    http://weddings.davidbacher.com/decoration-details/
    In Safari/Chrome on mac all imgs load. Please tell me when seen to let be disable it.
    Thanks

  13. Bjørn Johansen
    Member
    Plugin Author

    Posted 1 year ago #

    I see what happens, and this is my guess:

    You havent defined height (or width) for your images. At document.ready all images are within the viewport, because the first images doesn't take up the space that would push the rest «below the fold».

    If you define the height/and with for your images, I bellieve the issue should be fixed.

  14. synthview
    Member
    Posted 1 year ago #

    I see, but I need them without because of a liquid layout.
    Thanks anyway :)

  15. Bjørn Johansen
    Member
    Plugin Author

    Posted 1 year ago #

    You can still keep the width/height attributes, just add this (or similar) to your CSS:

    img {
      max-width: 100%;
      height: auto;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.