Title: AMP Errors After Installing W3
Last modified: April 21, 2021

---

# AMP Errors After Installing W3

 *  Resolved [wcopus](https://wordpress.org/support/users/wcopus/)
 * (@wcopus)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/amp-errors-after-installing-w3/)
 * Hello,
 * Yesterday I installed the W3 Cache plugin and today I noticed 3 of my pages have
   AMP Error now. The errors I’m getting are as follows:
 * – Only amp-boilerplate and amp-custom ‘style’ tags are allowed, and only in the
   document head.
 * – Custom JavaScript is not allowed.
 * – Disallowed attribute or attribute value present in HTML tag.
 * The three articles effected are:
    [https://gamerhabitat.com/best-starting-deck-rush-royale/amp/](https://gamerhabitat.com/best-starting-deck-rush-royale/amp/)
   [https://gamerhabitat.com/rush-royale-deck-and-card-tier-list/amp/](https://gamerhabitat.com/rush-royale-deck-and-card-tier-list/amp/)
   [https://gamerhabitat.com/rush-royale-promotional-codes/amp/](https://gamerhabitat.com/rush-royale-promotional-codes/amp/)
 * I haven’t changed anything else on my website outside of installing W3. Does 
   anyone know why this problem might be occurring and what I should be doing to
   fix it?
 * Thanks!

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/amp-errors-after-installing-w3/#post-14347802)
 * Hello [@wcopus](https://wordpress.org/support/users/wcopus/)
 * Thank you for your inquiry and I am happy to assist you with this.
    Can you please
   disable Lazy loading in Perfomrance>General settings, save all settings and purge
   the cache and try validating your AMP pages? Thanks!
 *  Thread Starter [wcopus](https://wordpress.org/support/users/wcopus/)
 * (@wcopus)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/amp-errors-after-installing-w3/#post-14347955)
 * Perfect. That seemed to do the trick. Is there any way to still utilize lazy 
   loading for all pages except for AMP pages?
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/amp-errors-after-installing-w3/#post-14348066)
 * Hello [@wcopus](https://wordpress.org/support/users/wcopus/)
 * Thank you for the information.
    What you can do is to try to exclude the images
   on those pages from lazy load in Performance>User Experience>Exclude words. If
   that does not work, you should keep the Lazy load disabled. Thanks!
 *  Thread Starter [wcopus](https://wordpress.org/support/users/wcopus/)
 * (@wcopus)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/amp-errors-after-installing-w3/#post-14348086)
 * So could it be as simple as excluding the word “/amp” to make sure all of my 
   AMP URLs aren’t lazy loading?
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/amp-errors-after-installing-w3/#post-14350301)
 * Hello [@wcopus](https://wordpress.org/support/users/wcopus/)
 * Thank you for your question.
    As I can see your images are being optimized with
   the SmushIt plugin so you should avoid using W3TC LazyLoading in this case. Thanks!

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

The topic ‘AMP Errors After Installing W3’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/amp-errors-after-installing-w3/#post-14350301)
 * Status: resolved