Title: JetPack Slideshow Block rendering after asynchronous load
Last modified: April 23, 2025

---

# JetPack Slideshow Block rendering after asynchronous load

 *  Resolved [bigflannel](https://wordpress.org/support/users/bigflannel/)
 * (@bigflannel)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/jetpack-slideshow-block-rendering-after-asynchronous-load-2/)
 * I am using an AJAX request to load a custom post type with a JetPack Slideshow
   block in it and place it on a page.
   I pass a post id to PHP from a JS AJAX request.
   In PHP I do a query loop on that post id, build some HTML, then return it to 
   JS and place it on the page using jQuery.This all works well, but the JetPack
   slideshow is blank, all the HTML appears correct, but it does not appear to be
   initiated. I asked about it before once:
 * [https://wordpress.org/support/topic/rendering-blocks-loaded-via-ajax/](https://wordpress.org/support/topic/rendering-blocks-loaded-via-ajax/)
 * I tried the solutions on this page:
 * [https://stackoverflow.com/questions/72635660/inline-styles-for-gutenberg-blocks-not-rendering-when-content-fetched-with-ajax](https://stackoverflow.com/questions/72635660/inline-styles-for-gutenberg-blocks-not-rendering-when-content-fetched-with-ajax)
 * They didn’t work in my case. Others seem to have the issue:
 * [https://stackoverflow.com/questions/78519520/jetpack-gutenberg-slideshow-block-not-working-or-rendering-on-custom-ajax-infini](https://stackoverflow.com/questions/78519520/jetpack-gutenberg-slideshow-block-not-working-or-rendering-on-custom-ajax-infini)
 * [https://wordpress.org/support/topic/gutenberg-slideshow-block-not-rendering-with-custom-infinite-load-posts/](https://wordpress.org/support/topic/gutenberg-slideshow-block-not-rendering-with-custom-infinite-load-posts/)
 * I think it might be related to this:
 * [https://github.com/Automattic/jetpack/issues/19182](https://github.com/Automattic/jetpack/issues/19182)
 * I build my HTML using the_content(), I’ve tried the function to change the block
   flags and wp_render_layout_support_flag(), I’ve tried running do_action(‘wp_footer’);
   after the code has been placed using JS with a further ajax call.
 * It seems like I need to initiate the JetPack Slideshow block after an asynchronous
   load. Or maybe I am missing something.
 * A quick note, the same Slideshow block renders fine on the custom post type’s
   single page.
 * Any insights or suggestions greatly appreciated.
 * Regards
   Mike

Viewing 1 replies (of 1 total)

 *  Plugin Support [Alin (a11n)](https://wordpress.org/support/users/alinclamba/)
 * (@alinclamba)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/jetpack-slideshow-block-rendering-after-asynchronous-load-2/#post-18437256)
 * Hi [@bigflannel](https://wordpress.org/support/users/bigflannel/),
 * Thanks for all the detailed notes and for linking the [GitHub](https://github.com/Automattic/jetpack/issues/19182)
   issue as well.
 * Based on the information available (and the GitHub thread you referenced), it
   seems that the Jetpack Slideshow block scripts are initialized during page load(`
   DOMContentLoaded`). When content is loaded asynchronously (like through AJAX),
   those scripts don’t automatically re-run, and this can cause the block not to
   fully render.
 * You’ve done an excellent job documenting this, and I can confirm that your feedback
   has already been seen by our developers. The GitHub issue has been updated recently
   with the correct labels, and it’s being tracked as an enhancement.
 * While there’s no immediate fix yet, following the GitHub thread will be the best
   way to stay updated on any progress.
 * I’ll go ahead and mark this thread as resolved for now, just to help keep the
   forums organized. Of course, feel free to add any new questions or follow the
   GitHub discussion if you have further ideas or feedback. Thanks for raising this
   so clearly!
 * Best regards,
   Alin

Viewing 1 replies (of 1 total)

The topic ‘JetPack Slideshow Block rendering after asynchronous load’ is closed 
to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [render](https://wordpress.org/support/topic-tag/render/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alin (a11n)](https://wordpress.org/support/users/alinclamba/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/jetpack-slideshow-block-rendering-after-asynchronous-load-2/#post-18437256)
 * Status: resolved