Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bj?rn Johansen

    (@bjornjohansen)

    1. Look at the HTML source (not the DOM) for images in the content, and make sure your produced HTML is compatible.

    2. Enable the ?Infinite Scroll? option (should have had a better name for that) in the backend, and trigger $(window).scroll() after your HTML is inserted into the DOM.

    Thank you too ??

    Thread Starter busybe235

    (@busybe235)

    Thanks your reply, Bj?rn.

    I couldn’t make it work. Here is my ajax script: https://pastebin.com/BzWknRj0

    I added what you told, maybe I am missing something.

    Thread Starter busybe235

    (@busybe235)

    ok, I somehow managed it.

    In a different context,
    triggering the scroll via jquery:
    $(window).scroll() was not working, but
    via pure javascript it worked window.dispatchEvent(new Event('scroll'));
    i’ve no clue why, but it may help someone.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add BJ lazy load on Ajax post thumbnails?’ is closed to new replies.