Title: Exclude some JS from optimization
Last modified: February 18, 2019

---

# Exclude some JS from optimization

 *  Resolved [ethersav](https://wordpress.org/support/users/ethersav/)
 * (@ethersav)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/exclude-some-js-from-optimization/)
 * I have few JS plugins which do not work properly when I enable optimization. 
   Is it possible to exclude few js files from the general optimization workflow?

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

 *  Plugin Author [Hristo Pandjarov](https://wordpress.org/support/users/hristo-sg/)
 * (@hristo-sg)
 * SiteGround Representative
 * [7 years, 2 months ago](https://wordpress.org/support/topic/exclude-some-js-from-optimization/#post-11221673)
 * In the new 5.1 version, we’ve added filters to exclude JS and CSS from optimization.
   You need to haver their handlers though. Check the main plugin page for more 
   info.
 *  Thread Starter [ethersav](https://wordpress.org/support/users/ethersav/)
 * (@ethersav)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/exclude-some-js-from-optimization/#post-11584388)
 * Thank you for your reply!

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

The topic ‘Exclude some JS from optimization’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ethersav](https://wordpress.org/support/users/ethersav/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/exclude-some-js-from-optimization/#post-11584388)
 * Status: resolved