[Support request] "AJAX Pagination" and "Lazy loading for images" of Jetpack

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support "AJAX Pagination" and "Lazy loading for images" of Jetpack

  • This topic has 1 reply, 2 voices, and was last updated 7 months ago by Tom.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12605
    Cris
    Participant

    Hi Tom, I have a problem if I activate “AJAX Pagination” of WPSP, with the option “Lazy loading for images” of Jetpack. The problem is that it does not load the images that should appear after pressing “Load more”. Is there any way to fix it so that they work together?
    Thanks!

    #12645
    Tom
    Keymaster

    Hi there,

    We’ll have to tell Jetpack to load the images once our new posts are loaded. Did some looking around and found a way using javascript:

    jQuery( document ).ready( $ ) {
        $( 'body' ).on( 'wpsp_items_loaded', function() {
             $( document.body ).trigger( 'post-load' );
        } );
    } );

    Let me know if that does it or not 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.