Title: AMP scripts stripped
Last modified: November 20, 2016

---

# AMP scripts stripped

 *  Resolved [cwfaraday](https://wordpress.org/support/users/cwfaraday/)
 * (@cwfaraday)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/amp-scripts-stripped/)
 * Hi,
 * It seems like JS optimization strips away the AMP <script> tags, breaking AMP.
   By disabling “Optimize Javascript Loading”, <script> tags are left alone and 
   AMP validation succeeds.
 * Is there a way to exclude all /amp/ pages, or their scripts?
 * I’m using the AMP Supremacy plugin.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [optimalisatie](https://wordpress.org/support/users/optimalisatie/)
 * (@optimalisatie)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/amp-scripts-stripped/#post-8483721)
 * Hi cwfaraday,
 * Thank you for taking the time to report the problem!
 * The plugin already offers support for the plugin AMP-WP. I’ve checked AMP Supremacy
   quickly and regrettably the plugin does not offer any hook or way to detect that
   an AMP page is being served, other than using a more complex (lower performance)
   method.
 * I will add support for AMP Supremacy in the next plugin, it would however also
   be an option to request the author of the plugin to support the method [is_amp_endpoint()](https://github.com/Automattic/amp-wp/blob/master/includes/amp-helper-functions.php)
   from AMP-WP or to simply make it possible to detect that an AMP page is being
   served.
 * _[ [Signature moderated](http://codex.wordpress.org/Forum_Welcome#Signatures)]_
    -  This reply was modified 9 years, 5 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 1 replies (of 1 total)

The topic ‘AMP scripts stripped’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/above-the-fold-optimization_fcfbf6.
   svg)
 * [Page Speed Optimization](https://wordpress.org/plugins/above-the-fold-optimization/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/above-the-fold-optimization/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/above-the-fold-optimization/)
 * [Active Topics](https://wordpress.org/support/plugin/above-the-fold-optimization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/above-the-fold-optimization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/above-the-fold-optimization/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [optimalisatie](https://wordpress.org/support/users/optimalisatie/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/amp-scripts-stripped/#post-8483721)
 * Status: resolved