AMP Critical Error: Custom JavaScript is not allowed
-
Hi
I am getting this error in the AMP Validator:
“Custom JavaScript is not allowed. CUSTOM_JAVASCRIPT_DISALLOWED
line 31, column 1”This is line 31:
<script>if (document.location.protocol != “https:”) {document.location = document.URL.replace(/^http:/i, “https:”);}</script><script type=’text/javascript’ src=’https://cdn.ampproject.org/v0.js’ async></script>
Link to the validator page:
This error is there for all site posts.
Please help to fix it.
The page I need help with: [log in to see the link]
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘AMP Critical Error: Custom JavaScript is not allowed’ is closed to new replies.