The problem was that I call imagesLoaded on the Isotope grid itself, instead of the newly added items. I changed only the event that triggers when new items were added to wait until the images of the newly added posts are loaded, then append them to the isotope layout.
infinite_count = 0;
// Triggers re-layout on infinite scroll
$( document.body ).on( 'post-load', function () {
var $container = $('#grid');
infinite_count = infinite_count + 1;
var $selector = $('#infinite-view-' + infinite_count);
var $elements = $selector.find('.hentry');
$elements.hide();
$elements.imagesLoaded().done( function(){
$container.append( $elements ).isotope( 'appended', $elements );
$elements.fadeIn();
});
});
Related Posts:
- Isotope with Infinite Scroll
- Jetpack infinite scroll not working on twentysixteen custom theme
- Jetpack Infinite Scroll – changing number of posts
- Infinite scroll function for Twenty Seventeen
- How to disable Jetpack modules such as Stats?
- Cannot activate Jetpack on my server
- Jetpack Infinite Scrolling For Multiple Columns On Same Page?
- Custom Loop and Infinite Scroll
- Popular posts by view with Jetpack
- Gravatar Hovercards (Jetpack) jQuery error
- Jetpack – stats_get_csv period parameter
- Using stats_get_csv to return a list of popular posts by views with thumbnails
- Jetpack infinite scroll render – make different depending on post type?
- Jetpack Infinite scroll conflicting with theme’s pre_get_posts custom posts_per_page
- How do I update the site URL used by Jetpack subscribe widget [closed]
- Jetpack infinite scroll not working on Twenty Twelve [closed]
- Can’t connect to my WordPress website using Windows 8 app?
- What does this number represent in JetPack stats? [closed]
- I have a self hosted blog but now the WordPress.com stats plugin has stopped working
- jetpack suddendly stopped working [closed]
- Exclude Post Type from Jetpack Infinite Scroll
- Jetpack social icons in other places on site
- Why I can’t modified jetpack default blank.jpg on og:image?
- How to remove WordPress’ Jetpack plugin completely? [duplicate]
- Masonry and Jetpack Infinite Scroll – overlap issue
- How do I remove quantcast from my sites?
- Customizing JetPack Publicize Sharing
- how to get jetpack’s infinite scroll to work with woocommerce?
- Changing sort order for presentation by Jetpack infinite scroll
- Change $content_width based on screen size (functions.php)
- infinite-scroll for 2 fixed height containers
- Jetpack button location buffering [closed]
- Redirect to another page using contact form 7? [closed]
- Does Jetpack conflicts with load_template()?
- Hide Jetpack for Contributor [closed]
- How do i import email addresses into WordPress.com subscriptions? [closed]
- Hiding Jetpack Ads from users who are signed in?
- Remove Jetpack infinite-wrap
- How to allow users to write jetpack custom post types? [closed]
- Missing Jetpack Contact Form button when running locally [closed]
- Jetpack Infinite Scroll won’t fire [closed]
- Why does Jetpack insert it’s script outside the tag?
- Updating shortlinks from staging [closed]
- Jetpack Publicize and Android
- How can I get the Jetpack Image plugin to open links in a new window? [closed]
- Infinite Scroll on Self-hosted WordPress [closed]
- How to remove Stats by jetpack dashboard widget?
- Publicize in Jetpack stopped working on Custom Post Type it works in Blog Posts
- Jetpack Top post widget (display post views)
- Unable to setup jetpack on my site
- Where does Jetpack store markdown?
- The plugin jetpack/jetpack.php has been deactivated due to an error: Plugin file does not exist
- Jetpack URL shortening, fixing after website URL change
- Jetpack Infinite Scroll Not Working
- how to disable jetpack for non admins?
- Popular posts – based on pageviews
- Implementing backbone.js to retrieve category posts using JSON API
- jQuery infinite scroll and pagination styling in wordpress
- Jetpack email sharing button to include image on email sent
- Is there a way to enable a Jetpack module via `functions.php`
- Pageview confusion [closed]
- query posts only works on the first page
- Force Jetpack to not use og:image tag for favicon / Site Icon [closed]
- Using Jetpack to track an Ajax powered blog [closed]
- Jetpack: Access visitor stats in templete
- Convert posts that used the Markdown Block into Markdown in Classic Editor posts?
- Generate Sitemap after removing JetPack
- Jetpack Running Locally [closed]
- How to run Jetpack from localhost? [closed]
- Get ‘page’ number with infinite scroll
- When would it make sense to use Jetpack?
- WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?
- Slow REST API calls on self-hosted WordPress [closed]
- How to tell if Jetpack’s Photon is active?
- Is “Featured Content” in Twenty Fourteen done with a plugin, or is it native in WP4.0?
- Trying to get custom post meta through Jetpack JSON API [closed]
- WordPress Infinite Scroll without using any plugin
- Jetpack plugin (ShareDaddy): Prevent share buttons showing on custom post types?
- Pagination/infinite scroll with WP_Query and multiple loops
- Moving sharedaddy buttons (in Jetpack) to the top of a post?
- Update Failed: There has been a critical error on your website
- Ajax Infinite Scroll In Custom WP_Query Loop Not Working
- ‘Lazy loading’ list of posts with pagination
- Is there a way to fire other functions from wp_insert_post
- Customise Jetpack Publicize text
- Jetpack plugin – ‘posts_per_page’ not overriding ‘Blog pages show at most’ option, also different values for different post types?
- Custom post metadata not appearing in public API
- Placeholders in Jetpack Contact Form [closed]
- Jetpack Blog Subscriptions on Multisite [closed]
- Setting Login with User Name and Password default option for Jetpack Admin Login
- Do I need to use a new WordPress.com account for each Jetpack installation
- Allow latex in wordpress excerpt
- Implications of changing wordpress.com associated with Jetpack [closed]
- How can I remove the new stats message? [closed]
- How can I show the Jetpack Subscriptions form in a page? [closed]
- Add Infinite Scroll to Ajax Loaded Category Query
- How to stop PHP code running when in a child theme
- JetPack Infinite Scroll not working on custom theme
- API for Post Stats for Self-Hosted WordPress using JetPack [closed]
- Script doesn’t load because of a javascript MIME type error