Title: AMP Bug?
Last modified: November 21, 2017

---

# AMP Bug?

 *  Resolved [danescobar](https://wordpress.org/support/users/danescobar/)
 * (@danescobar)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/amp-bug/)
 * Hi Team Automattic,
 * Recently AMP validator tools have started to throw this error in all AMP pages
   since 11/19 making all AMP pages invalid:
 * The attribute ‘src’ in tag ‘amp-anim extension .js script’ is set to the invalid
   value ‘[https://cdn.ampproject.org/v0/amp-anim-0.1.js&#8217](https://cdn.ampproject.org/v0/amp-anim-0.1.js&#8217);
   defer onload=”
 * Is this caused by your plugin which may be outdated or an incompatibility with
   other? I’m only using Yoast Glue and AMP Woocommerce besides yours. I deactivated
   both and the problem persisted.
 * Thanks for your attention.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/amp-bug/#post-9708018)
 * I’m seeing the same at [https://validator.ampproject.org/#url=https%3A%2F%2Ffindgoodhealth.org%2Fvitamins-for-hair-growth%2Famp%2F](https://validator.ampproject.org/#url=https%3A%2F%2Ffindgoodhealth.org%2Fvitamins-for-hair-growth%2Famp%2F)
 * It looks like you may have a theme, plugin, or server module that tries to improve
   performance by adding `defer` to all scripts. This would probably be the reason
   for the problem.
 *  Thread Starter [danescobar](https://wordpress.org/support/users/danescobar/)
 * (@danescobar)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/amp-bug/#post-9708131)
 * Hmm I’m currently using Autoptimize but only activated optimize js code and no
   other option in that section. Other optimization plugins I’m using are WP Super
   Cache, [WP-Optimize](https://wordpress.org/plugins/wp-optimize/) and [WP-Disable](https://wordpress.org/plugins/wp-disable/).
   I have difficulties finding which plugin could be adding defer to all scripts.
   I’ll investigate further but would be appreciated for any help. Thanks for pointing
   me in the right direction Weston.
 *  Thread Starter [danescobar](https://wordpress.org/support/users/danescobar/)
 * (@danescobar)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/amp-bug/#post-9708357)
 * Finally found what was causing the defer onload bug. A code snippet I added several
   days ago from a “_guide_” to improve performance. It’s becoming increasingly 
   hard to find reputable sources of information online offering reliable and tested
   advice, I’ll be more careful in the future.
 * Thanks a lot for all the help.

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

The topic ‘AMP Bug?’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [fail](https://wordpress.org/support/topic-tag/fail/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 3 replies
 * 2 participants
 * Last reply from: [danescobar](https://wordpress.org/support/users/danescobar/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/amp-bug/#post-9708357)
 * Status: resolved