Title: How to exclude scripts from optimization
Last modified: August 16, 2024

---

# How to exclude scripts from optimization

 *  Resolved [DanFoster](https://wordpress.org/support/users/danfoster/)
 * (@danfoster)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/how-to-exclude-scripts-from-optimization/)
 * Hello. I’m one of the authors of the [Track The Click](https://wordpress.org/plugins/track-the-click/)
   plugin. Hummingbird’s optimization is preventing our plugin from working. When
   we found the same issue with Autoptimize and LiteSpeed Cache, both offered the
   ability to exclude scripts from optimization by adding an attribute to the script
   tag. Does Hummingbird offer a similar thing, and if so what’s the attribute to
   do so?

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

 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/how-to-exclude-scripts-from-optimization/#post-17956953)
 * Hi [@danfoster](https://wordpress.org/support/users/danfoster/),
 * I have brought this further to our developer’s attention to see what could be
   suggested, however, possible to provide further information regarding the issues
   noticed?
   Is the issue specific to occur when enabling any specific settings on
   the Hummingbird side? ie does it occur once Asset Optimization is enabled under**
   Hummingbird > Asset Optimization**? or with enabling the “Delay JavaScript Execution”
   feature which is more of a Pro version setting?
 * Possible to provide further info on which specific <script> or file, the issue
   is noticed so that we can suggest further?
 * Looking forward to your response.
 * Kind Regards,
 * Nithin
 *  Thread Starter [DanFoster](https://wordpress.org/support/users/danfoster/)
 * (@danfoster)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/how-to-exclude-scripts-from-optimization/#post-17957624)
 * This was a report from one of our users, verified by having them temporarily 
   disable Hummingbird – I’m not sure if it was the standard or Pro version. If 
   you’d like to narrow it down, the core functionality of the standard version 
   of Track The Click is affected – clicks aren’t tracked when their settings were
   used. I suspect it’s from using delay, which would tally with the effects from
   the other optimisation plugins.
 *  Thread Starter [DanFoster](https://wordpress.org/support/users/danfoster/)
 * (@danfoster)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/how-to-exclude-scripts-from-optimization/#post-17957630)
 * [This](https://wordpress.org/support/topic/exclude-some-inline-js-from-being-autoptimized/)
   was the thread with the solution for Autoptimize, by way of example.
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/how-to-exclude-scripts-from-optimization/#post-17958625)
 * Hi [@danfoster](https://wordpress.org/support/users/danfoster/)
 * The Free version won’t optimize the inline scripts so based on your description
   it is the Pro version which requires a ticket on [https://wpmudev.com/hub2/support](https://wpmudev.com/hub2/support)
 * But the optimized JS file may be breaking the inline script as usually, Inline
   Script depends on the file to be loaded.
 * In case it is the Free version you can use the ID to exclude the file:
 * [https://monosnap.com/file/HiWX7aMf0QA132yOiyfJr59ur5jKOk](https://monosnap.com/file/HiWX7aMf0QA132yOiyfJr59ur5jKOk)
 * So you can search for track-the-click
    [https://monosnap.com/file/UDEfYRktMPJruDBuD8Iej2KMpI4yyT](https://monosnap.com/file/UDEfYRktMPJruDBuD8Iej2KMpI4yyT)
 * As for your question:
 * > This was the thread with the solution for Autoptimize, by way of example.
 * We use the file ID via exclusion, we don’t have any specific tag like that but
   on Pro, the exclusion box is very flexible, you would be able to just use “track-
   the-click” as well, or even add any custom ID and then enter there.
 * As I said, we can’t give the Pro support here but the docs are publicly available:
   [https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#delay-js-exclusions](https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#delay-js-exclusions)
 * In case you use the Pro one which based on your description is the case feel 
   free to create a ticket on wpmudev.com and we will check it deeply.
 * Let us know if that fixed the issue,
    Best Regards Patrick Freitas
 *  Plugin Support [Williams – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport3/)
 * (@wpmudevsupport3)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/how-to-exclude-scripts-from-optimization/#post-17974478)
 * Hi [@danfoster](https://wordpress.org/support/users/danfoster/),
 * We haven’t heard from you in a while, I’ll go and mark this thread as resolved.
   Note that you can still reply on this topic.
 * If you have any additional questions or require further help, please let us know!
 * Best regards,
    Laura

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

The topic ‘How to exclude scripts from optimization’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Williams – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport3/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/how-to-exclude-scripts-from-optimization/#post-17974478)
 * Status: resolved