Title: Loading issue within a lightbox
Last modified: August 31, 2016

---

# Loading issue within a lightbox

 *  [missedthepoint](https://wordpress.org/support/users/missedthepoint/)
 * (@missedthepoint)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-issue-within-a-lightbox/)
 * Can get it to load perfectly the first time within the media grid lightbox with
   ajax setting enabled. When you click out and try to open again it won’t load.
   Is there a way to recall the script to make it work?
 * [http://salonhero.com/hushhushsalon/test-instagram-feed-lightbox/#!mg_ld=3143](http://salonhero.com/hushhushsalon/test-instagram-feed-lightbox/#!mg_ld=3143)
 * Thanks for your time
 * [https://wordpress.org/plugins/instagram-feed/](https://wordpress.org/plugins/instagram-feed/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [smashballoon](https://wordpress.org/support/users/smashballoon/)
 * (@smashballoon)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-issue-within-a-lightbox/#post-7057101)
 * Hey missedthepoint,
 * It looks like the issue is that the lightbox is rebuilding the HTML every time
   it’s loaded and so the plugin’s JavaScript isn’t being applied after the first
   time. You can recall the JavaScript using the following function:
 * `sbi_init();`
 * Let me know whether that works for you, and I hope you’re having a good Friday!
 * John
 *  Thread Starter [missedthepoint](https://wordpress.org/support/users/missedthepoint/)
 * (@missedthepoint)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-issue-within-a-lightbox/#post-7057131)
 * Thanks for quick response!
 * Thats makes sense but I’m not entirely sure where I should add the recall javascript
   function sbi_init(); ?
 * Zak
 *  Thread Starter [missedthepoint](https://wordpress.org/support/users/missedthepoint/)
 * (@missedthepoint)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-issue-within-a-lightbox/#post-7057133)
 * NVM got it working. Thanks so much 🙂
 *  [David](https://wordpress.org/support/users/dwyffels/)
 * (@dwyffels)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-issue-within-a-lightbox/#post-7057134)
 * It’s good to hear that you are “back on track” and all is now sorted for you.
   If you have additional questions please contact us. Have a great weekend.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Loading issue within a lightbox’ is closed to new replies.

 * ![](https://ps.w.org/instagram-feed/assets/icon-256x256.png?rev=2700807)
 * [Smash Balloon Social Photo Feed – Easy Social Feeds Plugin](https://wordpress.org/plugins/instagram-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instagram-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-feed/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [David](https://wordpress.org/support/users/dwyffels/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/loading-issue-within-a-lightbox/#post-7057134)
 * Status: not resolved