Title: Exclude JS Issue
Last modified: March 22, 2017

---

# Exclude JS Issue

 *  Resolved [thiyagesh](https://wordpress.org/support/users/thiyagesh/)
 * (@thiyagesh)
 * [9 years ago](https://wordpress.org/support/topic/exclude-js-issue/)
 * Hi Frank Goossens,
 * Your plugin is awesome, and I am also utilizing it very efficiently. But, Now
   I found a weird or may be easy to fix issue. On Exclude Input, we can exclude
   the js files which we want.
 * Now, In my case as default, I have excluded jquery.js, so that it won’t cause
   unnecessary issues.
 * Then, one of the plugin is enqueuing js file – slider.jquery.js.
 * Now on our case, both of the file got excluded, how do I only exclude jquery.
   js, not the other one slider.jquery.js. Since, its a plugin file, I can’t change
   that js file name.
 * I would like to hear from you.
 * Thanks,
    Thiyagesh M

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years ago](https://wordpress.org/support/topic/exclude-js-issue/#post-8943447)
 * Simply be more specific in your jquery exclude, e.g. the default `js/jquery/jquery.
   js` (if you’re using the core-provided jquery).
 * hope this clarifies,
    frank
 *  Thread Starter [thiyagesh](https://wordpress.org/support/users/thiyagesh/)
 * (@thiyagesh)
 * [9 years ago](https://wordpress.org/support/topic/exclude-js-issue/#post-9017762)
 * Sorry for late reply, Its works charm!!!
 * Also, Is it possible to exclude all css files from specific theme folder or sub
   folders. (e.g. like this `/wp-content/themes/theme1/shortcodes/*.css`)
 * Because In our theme there are more than 90 css files related to shortcodes, 
   each css gets loaded whenever the specific shortcode is used on the page.
 * Because of this, autoptimize regenerating new autoptimize files consistently 
   leading to larger files.
 * *One recommendation:*
 * If exclude input option can be replaced with textarea(bigger width and height),
   It will be easy for us to recheck, and also we can add styles line by line. As
   now we need to scroll using arrows or need to copy them and check in notepad(
   somewhat difficult to manage 🙂 )
 * Thanks!
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years ago](https://wordpress.org/support/topic/exclude-js-issue/#post-9017792)
 * > Also, Is it possible to exclude all css files from specific theme folder or
   > sub folders. (e.g. like this /wp-content/themes/theme1/shortcodes/*.css)
 * sure, just enter `themes/theme1/shortcodes/` and you’ll be good to go 🙂
 * thanks for the recomendation, I’ll consider that!
 * frank
 *  Thread Starter [thiyagesh](https://wordpress.org/support/users/thiyagesh/)
 * (@thiyagesh)
 * [9 years ago](https://wordpress.org/support/topic/exclude-js-issue/#post-9017821)
 * Hi Frank,
 * Thank you for taking my note into consideration.
 * Also, If possible kindly, add option to enable/disable the log, which will add
   the list of css/js files compressed to create the autoptimized css/js files as
   comment on top of the autoptimized css, js files(Like a log). May be its useful
   for developers to find the difference between the two files, and exclude that
   dynamic files which causing cache size increasing enormously, we can also be 
   aware of the compressed list of unused static files too.
 * Thanks Again!!!

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

The topic ‘Exclude JS Issue’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [Exclude Script](https://wordpress.org/support/topic-tag/exclude-script/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * 4 replies
 * 2 participants
 * Last reply from: [thiyagesh](https://wordpress.org/support/users/thiyagesh/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/exclude-js-issue/#post-9017821)
 * Status: resolved