Title: AMP errors
Last modified: March 10, 2020

---

# AMP errors

 *  Resolved [Fabio Lobo](https://wordpress.org/support/users/fabiolobo/)
 * (@fabiolobo)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/amp-errors-13/)
 * This plugin is affecting AMP too.
 * Example: if I insert “cdn” on the keyword list, the plugin will change this:
 * `<script type='text/javascript' src='https://cdn.ampproject.org/v0.js' async>
   </script>`
 * To this:
 * `<script type='text/javascript' async data-type="lazy" data-src="https://cdn.
   ampproject.org/v0.js"></script>`
 * This generates an error and the URL is not approved ;\
 * Can you prevent the plugin from making changes to URLs with AMP? I’m using the
   official AMP plugin for WordPress.
 * Thanks!

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

 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/amp-errors-13/#post-12530082)
 * [@fabiolobo](https://wordpress.org/support/users/fabiolobo/) I’ll consider this
   in the future updates. But you should add a keyword that is more unique. The “
   cdn” might be used by a lot of scripts.
 * For example if you want to delay a script “cdn.facebook.com/sdk/events.js”, instead
   of putting “cdn”, add “events.js”.
 *  Thread Starter [Fabio Lobo](https://wordpress.org/support/users/fabiolobo/)
 * (@fabiolobo)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/amp-errors-13/#post-12531925)
 * [@gijo](https://wordpress.org/support/users/gijo/) Thanks! In that specific case
   the keyword “cdn” was the best option (lazy who?).

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

The topic ‘AMP errors’ is closed to new replies.

 * ![](https://ps.w.org/flying-scripts/assets/icon-256x256.png?rev=2240444)
 * [Flying Scripts: Delay JavaScript to Improve Site Speed & Performance](https://wordpress.org/plugins/flying-scripts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flying-scripts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flying-scripts/)
 * [Active Topics](https://wordpress.org/support/plugin/flying-scripts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flying-scripts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flying-scripts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Fabio Lobo](https://wordpress.org/support/users/fabiolobo/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/amp-errors-13/#post-12531925)
 * Status: resolved