But Google has outlawed Script commands that seem to be the greatest majority of our amp validation errors. We are running under a CloudFlare pro-account, their main script that loads CloudFlare performance options, (Mirage, Polish, Email Obfuscation, Rocket Loader, etc) is outlawed by Google AMP.
This is the fix that gives us the best option. CloudFlare custom page rule turns off Rocket Loader, Auto Minify, Polish, and Mirage. Credit to this helpful article on wppressurecooker.com. Our AMP page errors are quickly dropping in Webmaster Tools. Besides, we really don’t need acceleration on our amp posts.
Script: Prohibited unless the type is application/ld+json. (Other non-executable values may be added as needed.) Exception is the mandatory script tag to load the AMP runtime and the script tags to load extended components.
Update 03/30/2016: CleanTalk has updated their anti-spam plugin to be amp compatible. I highly recommend this plugin to keep your blog spam free. CleanTalk also has a built in Firewall that will deny blocked IPs from reaching your blog.
Here is a speed test comparison done on Pingdom.com between this articles standard post and it’s amp version. Despite disconnecting CloudFlare acceleration services on the AMP post the page ranked at 90% faster than most websites!
Update 08/22/16: This AMP specific CloudFlare page rule is no longer needed. CF has updated their system to support AMP Pages.
Also WordPress websites / blogs running under CloudFlare should have the official CF Plugin active, and toggling OFF HTTPS Protocol Rewriting. Failure to do this step will cause errors in your AMP Pages!
Retired Used Car Dealer (trust-me) and ASE Cert Mechanic with over 40 years experience. I'm also a Hobbyist DOS days Fidonet Bulletin Board System Operator (BBS SysOp) turned net guru. Just hanging out in cyberspace keeping up with tech!
Search This Blog
We are using cookies to give you the best experience on our website.
You can find out more about which cookies we are using or switch them off in settings.
Strictly Necessary Cookies
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.