• Resolved Andrew Tibbetts

    (@andrewgtibbetts)


    I see that some others are having issues with the almComplete callback not working at all but they haven’t been resolved. I am loading my js after the alm script, both right before body closes. (Seemingly) Randomly, the callback function will not fire when the first batch of posts are loaded. Any ideas?

    https://wordpress.org/plugins/ajax-load-more/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi Andrew,
    No I haven’t noticed this but to be honest I don’t really use the complete function all the much.

    Over the weekend ill do some test on various installs and see what i come up with.

    I’m having this issue too

    ie, the alert does not show:
    jQuery(document).ready(function($) {
    var $container = $(‘#isotope-grid’);
    // initialize
    $container.masonry({
    itemSelector: ‘.isotope-item’
    });

    $.fn.almComplete = function(alm){
    alert (‘hey’);
    };

    });

    ^ disregard. my jf file order was wrong order… sorry

    Plugin Author Darren Cooney

    (@dcooney)

    Yea I’ve tested this across all my environments and it’s working as advertised.

    Closing for now, please respond here if you need more assistance.

    Thread Starter Andrew Tibbetts

    (@andrewgtibbetts)

    Making sure ALM is loaded by adding ‘ajax-load-more’ as a script dependency when registering my js file seems to solve it.

    Plugin Author Darren Cooney

    (@dcooney)

    Ahh that makes sense. Good find.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘almComplete randomly not firing after 'page' 0 (first time)’ is closed to new replies.