Support » Plugin: BJ Lazy Load » Have to scroll viewport past images to trigger load

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bjørn Johansen


    Hi, tkyoung1

    I just tested your site, and it seemed to work just fine to me, so I’m not sure why you are experiencing this issue.

    However, I do have a theory. Your site seemed to load very slow, and the DOMready event triggered after like 7 seconds. The lazy loading script must wait for the DOMready event to make sure that all images will be loaded. If the user scrolls past the placeholders before the event is triggered, the images won’t be loaded until the user scrolls back.

    I haven’t analyzed your site in detail, but the long time to load the DOM is most likely caused by loading external javascript blocking the further loading. See if this is the case, and fix it by loading them asynchronously so you don’t block the parsing of the document.

    Thanks for your reply

    I think it may have been something with the theme (woothemes canvas). When I switched back to twentytwelve, it worked fine.

    Unfortunately I just couldn’t get my site to work with your plugin. I ended up changing to which is now working.

    Plugin Author Bjørn Johansen


    I’m sorry but, that plugin doesn’t work. It’s not an issue with that plugin but the whole technique.

    You see, that plugin (and all other JS-only plugins), replaces the original images with a placeholder using Javascript. But as the browser start loading images as soon as they encounter the <img>-tag, this is allready too late. Thus you end up first loading the original image, then loading and replacing with a placeholder and then replacing the placeholder again with the original. In total, this actually hurts your performance and it is better to not use it at all.

    If my plugin isn’t working, I’d reccomend you try instead. If that isn’t working either, you’re better off without lazy loading(or switching to a compatible theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Have to scroll viewport past images to trigger load’ is closed to new replies.