Title: Excluding not excluding
Last modified: June 22, 2017

---

# Excluding not excluding

 *  [funsail](https://wordpress.org/support/users/funsail/)
 * (@funsail)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/excluding-not-excluding/)
 * for js:
    underscore,mailchimp-for-wp/assets/js/forms-api.min
 * That should exclude the file plugins/mailchimp-for-wp/assets/js/forms-api.min.
   js?
 * css:
    ,.sharrre
 * should exclude any css with .sharrre in any part of it?
 * It doesn’t seem to be doing so I’m not sure why.

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/excluding-not-excluding/#post-9251801)
 * JS looks right … maybe try `forms-api.min.js` instead?
 * CSS depends; inline CSS with `.sharrre` would be excluded, linked CSS files only
   if they contain `.sharrre` in the filename.
 * frank
 *  Thread Starter [funsail](https://wordpress.org/support/users/funsail/)
 * (@funsail)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/excluding-not-excluding/#post-9251919)
 * The CSS I think it’s being written by php, I see it in a php file.
 * So you can’t exclude part of a file?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/excluding-not-excluding/#post-9252406)
 * if written in a PHP-file, you don’t need to exclude because AO only aggregates
   if in a static .css file
 * excluding part of a file indeed is not possible.
 * frank

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

The topic ‘Excluding not excluding’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/excluding-not-excluding/#post-9252406)
 * Status: not resolved