Title: Two things: Exclude CSS files and Inline javascripts
Last modified: August 21, 2016

---

# Two things: Exclude CSS files and Inline javascripts

 *  [akis](https://wordpress.org/support/users/akis/)
 * (@akis)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/)
 * There’s any chance to do any of those?
 * Why exclude CSS you may ask. Well, some plugins include the css files only on
   single or homepage for example, this will generate 2 separate and quite large(
   in some cases) combined&minified files which is pretty bad.
 * Thanks.
 * PS. Awesome plugin by the way, I was using BWP minify before.
 * [http://wordpress.org/plugins/autoptimize/](http://wordpress.org/plugins/autoptimize/)

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/?output_format=md)
[1](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/?output_format=md)
2

 *  [Rajasekharan N](https://wordpress.org/support/users/nrajasekharan/)
 * (@nrajasekharan)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/page/2/#post-4027061)
 * Yes, sure. I will cooperate with you, and I have a good news for you!
 * Here is the test score of WP-Minify standalone with JS minified by it:
 * Page Speed Score: 99/100
    Remove query strings from static resources Resources
   with a “?” in the URL are not cached by some proxy caching servers. Remove the
   query string and encode the parameters into the URL for the following resources:
 * [http://example.com/blog/wp-content/plugins/wp-minify/min/?f=wp-content/themes/graphene/style.css,wp-content/plugins/wp-pagenavi/pagenavi-css.css&b=blog&m=1379134744](http://example.com/blog/wp-content/plugins/wp-minify/min/?f=wp-content/themes/graphene/style.css,wp-content/plugins/wp-pagenavi/pagenavi-css.css&b=blog&m=1379134744)
 * Here is the test score of Autoptimize standalone with JS minified by it:
 * Page Speed Score: 100/100 (Autoptimize alone fetches this good score and that
   is the good news.)
 * So I don’t need WP-Minify anymore! Now only I have that issue of autosearch in
   404.
 * Feel free to revert if I can of any further help.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/page/2/#post-4027062)
 * Ah, but the solution for the autosearch in 404 is in my previous answer (éxclude
   window.location.replace and jquery.js) 🙂
 *  [Rajasekharan N](https://wordpress.org/support/users/nrajasekharan/)
 * (@nrajasekharan)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/page/2/#post-4027063)
 * Sorry, I messed up a bit, didn’t empty the cache.
 * Here are the standalone results for Autoptimize with Javascript minified by it:
   
   Page Speed Score: 98/100 Defer parsing of JavaScript 95.8KiB of JavaScript is
   parsed during initial page load. Defer parsing JavaScript to reduce blocking 
   of page rendering. [http://example.com/blog/wp-content/cache/autoptimize/autoptimize_b452c5faaea19a4171c47af758897faf.php](http://example.com/blog/wp-content/cache/autoptimize/autoptimize_b452c5faaea19a4171c47af758897faf.php)(
   95.6KiB) [http://example.com/](http://example.com/) (215B of inline JavaScript)
 * Here are the standalone results for WP-Minify with Javascript minified by it:
   
   Page Speed Score: 99/100 ▾Remove query strings from static resources Resources
   with a “?” in the URL are not cached by some proxy caching servers. Remove the
   query string and encode the parameters into the URL for the following resources:
   [http://example.com/blog/wp-content/plugins/wp-minify/min/?f=wp-content/themes/graphene/style.css&b=blog&m=1379134744](http://example.com/blog/wp-content/plugins/wp-minify/min/?f=wp-content/themes/graphene/style.css&b=blog&m=1379134744)
 * Now, with Autoptimize standalone and using the solution that you said above:
   
   Page Speed Score: 96/100 ▾ Optimize the order of styles and scripts The following
   inline script blocks were found in [http://example.com/](http://example.com/)
   between an external CSS file and another resource. To allow parallel downloading,
   move the inline script before the external CSS file, or after the next resource.
 *  Inline script block #2
 * ▾Defer parsing of JavaScript
    95.8KiB of JavaScript is parsed during initial 
   page load. Defer parsing JavaScript to reduce blocking of page rendering. [http://example.com/blog/wp-includes/js/jquery/jquery.js?ver=1.10.2](http://example.com/blog/wp-includes/js/jquery/jquery.js?ver=1.10.2)(
   83.7KiB) [http://example.com/blog/wp-content/cache/autoptimize/autoptimize_73888be765e20d6744365c693bfa40ab.php](http://example.com/blog/wp-content/cache/autoptimize/autoptimize_73888be765e20d6744365c693bfa40ab.php)(
   11.9KiB) [http://example.com/](http://example.com/) (215B of inline JavaScript)
   ▾Remove query strings from static resources Resources with a “?” in the URL are
   not cached by some proxy caching servers. Remove the query string and encode 
   the parameters into the URL for the following resources: [http://example.com/blog/wp-includes/js/jquery/jquery.js?ver=1.10.2](http://example.com/blog/wp-includes/js/jquery/jquery.js?ver=1.10.2)
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/page/2/#post-4027064)
 * regarding the 404+autosearch; the way the theme people coded it, you need jquery
   loaded before the window.location.replace-part. there’s no simple solution I 
   can think of that will allow you a perfect pagescore (which is very exceptional
   by the way, congrats) and a working 404+autosearch (unless the theme-guys would
   alter their approach for one that didn’t involve jquery or even javascript).
 *  [Rajasekharan N](https://wordpress.org/support/users/nrajasekharan/)
 * (@nrajasekharan)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/page/2/#post-4027065)
 * I think I can sacrifice autosearch for a good page speed score.
 * Meanwhile, it was a nice experience working with you Frank. Thank you so much.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/page/2/#post-4027066)
 * Nice experience indeed, thanks for the feedback!
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/page/2/#post-4027078)
 * excluding css is coming in 1.7.0 and [I could use some testing-help](http://wordpress.org/support/topic/version-170-features-your-help-needed)
   there. 🙂

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/?output_format=md)
[1](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/?output_format=md)
2

The topic ‘Two things: Exclude CSS files and Inline javascripts’ 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/)

 * 22 replies
 * 4 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/two-things-exclude-css-files-and-inline-javascripts/page/2/#post-4027078)
 * Status: not a support question