Title: Inline &amp; Defer CSS
Last modified: March 31, 2019

---

# Inline & Defer CSS

 *  Resolved [willgoode](https://wordpress.org/support/users/willgoode/)
 * (@willgoode)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/inline-defer-css/)
 * Hey there,
    When trying to increase my pagespeed insights score, I tried the 
   Inline and Defer CSS option, using a critical path css tool.
 * It worked very well and my pagespeed score went up, eliminating a few issues.
   However, my site has now stopped working on Google Chrome and Safari. It still
   works on Firefox but does still have a Syntax Error.
 * The errors on google chromes console are…
 * 12 Different:
 * Uncaught SyntaxError: Invalid or unexpected token
    (index):5 Uncaught SyntaxError:
   Invalid or unexpected token
 * and 12 different:
 * The resource [http://www.willgoode.com/wp-content/cache/autoptimize/css/autoptimize_single_c3018191f4a47dddddae024e7ad19221.css](http://www.willgoode.com/wp-content/cache/autoptimize/css/autoptimize_single_c3018191f4a47dddddae024e7ad19221.css)
   was preloaded using link preload but not used within a few seconds from the window’s
   load event. Please make sure it has an appropriate `as` value and it is preloaded
   intentionally.
 * Anyone know how to fix this?
 * Many thanks in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finline-defer-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/inline-defer-css/#post-11377200)
 * Were you able to fix, because I don’t see either when looking with Chrome or 
   Firefox Will?
 * ![](https://i0.wp.com/pix.toile-libre.org/upload/original/1554092631.jpg)
 * frank
 *  Thread Starter [willgoode](https://wordpress.org/support/users/willgoode/)
 * (@willgoode)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/inline-defer-css/#post-11377218)
 * Hey Frank, apologies, I unticked inline & defer to keep my website working.
 * I have reinstated the changes made.
 * I also managed to get rid of 10 syntax errors by adding/removing certain things
   from “Exclude CSS from Autoptimize”. I can’t seem to get rid of the last 2 errors
   and google chrome still wont work.
 * Thanks in advance.
    -  This reply was modified 7 years, 2 months ago by [willgoode](https://wordpress.org/support/users/willgoode/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/inline-defer-css/#post-11377248)
 * ah, looks like you’ve fallen victim to [the W3TC HTML minifying issue that impacts AO](https://blog.futtta.be/2019/01/27/warning-bug-in-w3-total-cache-impacts-autoptimize/),
   can you disable HTML minification?
 *  Thread Starter [willgoode](https://wordpress.org/support/users/willgoode/)
 * (@willgoode)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/inline-defer-css/#post-11377268)
 * No luck so far, but thanks for the prompt response.
    Disabled HTML minification
   on both AO and W3TC, no dice. I then disabled the W3TC plugin and still getting
   the same error.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/inline-defer-css/#post-11377275)
 * hmm, something is still eating quotes;
 * `onload="this.onload=null;this.rel='stylesheet"`
 * pagespeed ninja maybe?
 *  Thread Starter [willgoode](https://wordpress.org/support/users/willgoode/)
 * (@willgoode)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/inline-defer-css/#post-11377279)
 * Thats the one! Deactivated and it’s sorted. Guess i’ll bin that plugin, it’s 
   always causing my conflicts.
 * Thanks Frank!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/inline-defer-css/#post-11377293)
 * Well, there indeed is such a thing as “too many optimization plugins” 😉
 * Feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
 * frank

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

The topic ‘Inline & Defer CSS’ 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

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [defer](https://wordpress.org/support/topic-tag/defer/)
 * [preload](https://wordpress.org/support/topic-tag/preload/)

 * 7 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/inline-defer-css/#post-11377293)
 * Status: resolved