Title: Scroll Blocking Event Violations
Last modified: March 4, 2019

---

# Scroll Blocking Event Violations

 *  Resolved [brandllama](https://wordpress.org/support/users/brandllama/)
 * (@brandllama)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/scroll-blocking-event-violations/)
 * Hi. We have been using the FooGallery plugin on a staging site for a while, and
   recently, it’s been throwing thousands of Scroll-Blocking errors in Chrome, and
   loading incredibly slowly. Please review our page and let me know what we can
   do to fix this issue on our end. This site is due to the launch this week, and
   this issue just ground that all to a hault.
 * [http://www.llamastage.com/gtmam/project/indoor/](http://www.llamastage.com/gtmam/project/indoor/)
 * Thank you in advance for your help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fscroll-blocking-event-violations%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [steveush](https://wordpress.org/support/users/steveush/)
 * (@steveush)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/scroll-blocking-event-violations/#post-11275445)
 * Hi [@brandllama](https://wordpress.org/support/users/brandllama/),
 * Just dropping you a message to let you know I am looking into this and will get
   back to you once I figure out the issue. The scroll blocking violations would
   not be causing the long load time problem however there does seem to be an issue
   between the FooGallery and FooBox scripts with so many Image Viewer galleries
   being displayed on a single page.
 * I’ll update you once I know more.
 * Thanks
 *  Plugin Author [steveush](https://wordpress.org/support/users/steveush/)
 * (@steveush)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/scroll-blocking-event-violations/#post-11276558)
 * Hi [@brandllama](https://wordpress.org/support/users/brandllama/),
 * I’ve spent the day figuring this one out and I believe I have a working solution.
   As I suspected the violations are not the issue, they are actually a known “bug”
   with jQuery, the link to the open issue can be found [here on GitHub](https://github.com/jquery/jquery/issues/2871).
   I will be looking into some of the suggestions to work around the issue but performance
   wise there should be minimal impact on your site. Especially after my fix is 
   applied.
 * Onto the actual issue, it is being caused by the number of galleries on your 
   page along with an integration issue between FooGallery and FooBox. The actual
   issue is FooBox is being reinitialized many, many times, slowing down the page.
   By many, many times, I mean it is reinitializing 49 x 49 times. The reason for
   this is that after each FooGallery is initialized for the first time it raises
   a post-load event on the document which is used to notify other plugins that 
   something has changed in the page and to perform any required actions. Unfortunately
   in this case FooBox is listening for this event so it can reinitialize itself
   to pick up any new images.
 * In our test environments and on most of our users’ pages we only deal with a 
   couple of galleries at once so this performance hit was not picked up in testing
   and you are the first to report it to us. That said I have made changes to FooGallery
   to better handle this scenario and it will now only reinitialize the single instance
   of FooBox that is bound to it. So far in testing, where I duplicated your page
   layout, it has resolved the problem and I hope to have the fix ready to deploy
   this week.
 * If you would like to help us test the fix please go to [our sites support page](https://fooplugins.com/premium-support/)
   and select **Pre-Sales Question** from the dropdown. For the **Ticket Subject**
   you can put something like **Att: Steve** so that it can be correctly assigned
   across to me and then we can take it from there.
 * Thanks
    Steve
    -  This reply was modified 7 years, 3 months ago by [steveush](https://wordpress.org/support/users/steveush/).
      Reason: Added link to support page
 *  Thread Starter [brandllama](https://wordpress.org/support/users/brandllama/)
 * (@brandllama)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/scroll-blocking-event-violations/#post-11335616)
 * Thanks! Just saw your note and am encouraged by the feedback. I’ve reached out
   via the support page to help with the testing. Thanks again!
 *  [phillcoxon](https://wordpress.org/support/users/phillcoxon/)
 * (@phillcoxon)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/scroll-blocking-event-violations/#post-11336619)
 * Thank you [@brandllama](https://wordpress.org/support/users/brandllama/) – I’ve
   seen your support request and have assigned it to Steve who will be in touch 
   soon.
 * I’ll leave this thread open for now so we can come back and update it with an
   outcome once testing has been completed.
 *  Thread Starter [brandllama](https://wordpress.org/support/users/brandllama/)
 * (@brandllama)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/scroll-blocking-event-violations/#post-11336642)
 * Thanks, sounds good!
 *  Plugin Author [steveush](https://wordpress.org/support/users/steveush/)
 * (@steveush)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/scroll-blocking-event-violations/#post-11353800)
 * Hey [@brandllama](https://wordpress.org/support/users/brandllama/) I’m going 
   to resolve this as per your feedback from testing. Thanks for helping us resolve
   this.

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

The topic ‘Scroll Blocking Event Violations’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [steveush](https://wordpress.org/support/users/steveush/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/scroll-blocking-event-violations/#post-11353800)
 * Status: resolved