Title: Problems with AMP and inline CSS
Last modified: August 31, 2016

---

# Problems with AMP and inline CSS

 *  Resolved [abdobasha2004](https://wordpress.org/support/users/abdobasha2004/)
 * (@abdobasha2004)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/)
 * When I use inline CSS above the fold, the CSS is autmatically loaded in AMP pages.
   
   I use a plugin to deliver AMP pages at /amp the inlined css is for my main theme
   not amp, and it is also added in head of AMP pages!
 * Thanks,
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/#post-7118943)
 * autoptimize 2.0.1, which will probably be released in approx. a week, fixes problems
   with AMP. If you want you can already [download the beta here](https://downloads.wordpress.org/plugin/autoptimize.zip).
   would be great if you could test 🙂
 * frank
 *  Thread Starter [abdobasha2004](https://wordpress.org/support/users/abdobasha2004/)
 * (@abdobasha2004)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/#post-7119032)
 * it is still version 2.0.0 in the link you mentioned!
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/#post-7119056)
 * it is and it should be, this way you’ll still get the final official 2.0.1
 * but does this indeed solve your AMP-issue? 🙂
 * frank
 *  Thread Starter [abdobasha2004](https://wordpress.org/support/users/abdobasha2004/)
 * (@abdobasha2004)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/#post-7119092)
 * Unfortunately it did not solve the problem
    The inlined above the fold CSS still
   appear in amp <head>
 * view-source:[https://www.nmisr.com/arab-news/egypt-news/%D8%B9%D8%A7%D8%AC%D9%84-%D9%85%D9%81%D8%A7%D8%AC%D8%A3%D8%A9-%D8%B5%D8%A7%D8%AF%D9%85%D8%A9-%D9%81%D9%8A-%D9%86%D8%AA%D9%8A%D8%AC%D8%A9-%D8%AA%D8%AD%D9%84%D9%8A%D9%84-%D8%A7%D9%84%D9%85%D8%AE%D8%AF/amp#development=1](https://www.nmisr.com/arab-news/egypt-news/%D8%B9%D8%A7%D8%AC%D9%84-%D9%85%D9%81%D8%A7%D8%AC%D8%A3%D8%A9-%D8%B5%D8%A7%D8%AF%D9%85%D8%A9-%D9%81%D9%8A-%D9%86%D8%AA%D9%8A%D8%AC%D8%A9-%D8%AA%D8%AD%D9%84%D9%8A%D9%84-%D8%A7%D9%84%D9%85%D8%AE%D8%AF/amp#development=1)
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/#post-7119095)
 * confirmed; AO currently looks for `<html amp` but when looking at the specs should
   check for `<html ⚡`.
 * give me a couple of minutes, I’ll have a fix later tonight 🙂
 * frank
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/#post-7119096)
 * weird; both pagefrog and automattic’s amp plugin output `<html amp>` on my testblog,
   and AO succesfully backs out … what plugin are you using (and which version)?
 *  Thread Starter [abdobasha2004](https://wordpress.org/support/users/abdobasha2004/)
 * (@abdobasha2004)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/#post-7119097)
 * I changed it manually in Page-frog template, I got it back to amp now, testing…
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/#post-7119098)
 * [added check for “<html ⚡” in github](https://github.com/futtta/autoptimize/commit/e4ac0f6f776f6748fe93eb6a6b48f53792781d17),
   that version should now support the two.
 * frank

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

The topic ‘Problems with AMP and inline 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/)

 * 8 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/problems-with-amp-and-inline-css/#post-7119098)
 * Status: resolved