• Resolved akalwp

    (@akalwp)


    Hi,

    I’m using AJAX LOAD MORE (ALM) to load new page on scroll with url update (pushstate). Go on homepage, scroll down, you will see the next page “A Propos” (/a-propos/). On this pagee there are 2 cols, and you can see on the left col an empty space that should be the SVG file, but scripts plugin don’t look initialized. If you load directly the page /a-propos/, everything’s fine.
    ALM provides a callback almComplete() with some examples here =>
    https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/almcomplete/
    In the same way, could you please provide a specific callback that allow ALM to initiate properly your scripts plugin after successful ajax requests ? Or something else ?

    Best regard
    akal

    Nb : awesome plugin BTW ^^

    The page I need help with: [log in to see the link]

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

    (@benbodhi)

    Hi there,

    Thanks for your support and choosing my plugin!

    By the sounds of it, you may be able to just dequeue the JS from my plugin, then enqueue it again on any hook you want so that it fires when you need it to.

    I’ll be completely reworking the plugin soon, which w=should involve allowing the inline rendering to happen server side so it’s better for performance anyway, which should allow you to avoid this issue. No ETA on this yet though, I’m in the middle of some other huge jobs at the moment.

    But I hope this dequeue/enqueue solution works for you!
    Let me know how you go.

    Thread Starter akalwp

    (@akalwp)

    Hi,
    Thx for answer.
    sorry but still not working or maybe I’m not doing properly…
    akal

    Plugin Author Benbodhi

    (@benbodhi)

    Hi there,
    Sorry for the late reply!
    And sorry to hear you couldn’t get it to work.
    Unfortunately I have zero experience with ALM, so I don’t think I can be of much help at this point.
    I am super busy at the moment as well, so I don’t have the time to test it out unfortunately.
    I wish I could help more right now ??

    Maybe you could find a developer that could help out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AJAX LOAD MORE – scripts not initialized – need callback’ is closed to new replies.