Title: Toggle doesn&#8217;t work with combining or delaying Javascript
Last modified: July 10, 2021

---

# Toggle doesn’t work with combining or delaying Javascript

 *  Resolved [philraymond](https://wordpress.org/support/users/philraymond/)
 * (@philraymond)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/toggle-doesnt-work-with-combining-or-delaying-javascript/)
 * Nice plugin, thanks. “Toggle” works nicely, but I can’t 1) combine my Javascript
   into one file, or 2) delay my Javascript from executing, because both of these
   cause the bar to open up again on every page, even when it’s been toggled off.
 * I understand you may not be able to do anything about that but thought I’d let
   you know in case you can.

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

 *  Plugin Support [Bruce](https://wordpress.org/support/users/ninjateamwp/)
 * (@ninjateamwp)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/toggle-doesnt-work-with-combining-or-delaying-javascript/#post-14647182)
 * Hi [@philraymond](https://wordpress.org/support/users/philraymond/) ,
 * Thanks for coming today!
 * Please could you record a short screencast to show exactly what you have described
   above? It would help us understand you better?
 * Kind regards,
    -Bruce-
 *  Thread Starter [philraymond](https://wordpress.org/support/users/philraymond/)
 * (@philraymond)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/toggle-doesnt-work-with-combining-or-delaying-javascript/#post-14647351)
 * Yes, I’ve made a screencast, in which you’ll see:
 * 1. Using the WP Rocket plugin, I “Combine JavaScript files” (Combine JavaScript
   files combines your site’s internal, 3rd party and inline JS reducing HTTP requests)
   and “Delay Javascript execution” (Improves performance by delaying the loading
   of JavaScript files until user interaction, e.g. scroll, click). Note that WP
   Rocket doesn’t allow me to do both of these at the same time, but whether I do
   one or the other, the problem will be the same.
 * 2. I clear my browser cache.
 * 3. I open an incognito window and toggle the notification bar closed, but every
   time I navigate to a different page, the bar opens again.
 *  Plugin Support [Bruce](https://wordpress.org/support/users/ninjateamwp/)
 * (@ninjateamwp)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/toggle-doesnt-work-with-combining-or-delaying-javascript/#post-14649875)
 * Hi [@philraymond](https://wordpress.org/support/users/philraymond/) ,
 * Thanks for the references, and this issue was acknowledged and would be fixed
   in new version.
 * Kind regards,
    -Bruce-
 *  Plugin Author [Ninja Team](https://wordpress.org/support/users/ninjateam/)
 * (@ninjateam)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/toggle-doesnt-work-with-combining-or-delaying-javascript/#post-15192975)
 * Hi [@philraymond](https://wordpress.org/support/users/philraymond/)
 * Sorry for the late response.
    The issue was fixed in the latest version. Cheers!

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

The topic ‘Toggle doesn’t work with combining or delaying Javascript’ is closed 
to new replies.

 * ![](https://ps.w.org/notibar/assets/icon-256x256.png?rev=2387855)
 * [Notibar - Notification Bar for WordPress](https://wordpress.org/plugins/notibar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/notibar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/notibar/)
 * [Active Topics](https://wordpress.org/support/plugin/notibar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/notibar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/notibar/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Ninja Team](https://wordpress.org/support/users/ninjateam/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/toggle-doesnt-work-with-combining-or-delaying-javascript/#post-15192975)
 * Status: resolved