• Resolved cwfaraday

    (@cwfaraday)


    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

    (@optimalisatie)

    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() from AMP-WP or to simply make it possible to detect that an AMP page is being served.

    [ Signature moderated ]

    • This reply was modified 7 years, 10 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • The topic ‘AMP scripts stripped’ is closed to new replies.