New version of Breeze causes AMP validation errors
-
Shortly after updating to 1.1.10, Google started notifying me that my AMP pages were failing validation. If I disable Breeze and purge Varnish, all is well. But as soon as I reactivate Breeze, even if only the basic cache option is selected, the posts will fail validation. So, for now, Breeze is disabled on my system.
Here are the three validation errors Google reports
1. A tag on this page requires an AMP component ‘script’ tag, which is missing.
2. Custom JavaScript is not allowed.
3. Disallowed attribute or attribute value present in HTML tag.And here is the response I got when checking with the AMP folks about this problem.
`Humm. The validation errors are coming from these lines:
<script type=’application/javascript’ src=’https://cdn.ampproject.org/v0.js’></script>
<script type=’application/javascript’ src=’https://cdn.ampproject.org/v0/amp-analytics-0.1.js’></script>
<script type=’application/javascript’ src=’https://cdn.ampproject.org/v0/amp-bind-0.1.js’></script>
<script type=’application/javascript’ src=’https://cdn.ampproject.org/v0/amp-form-0.1.js’></script>
Each of these are supposed to have the async attribute, they should not have an type=’application/javascript’ attribute, and the last three are missing the custom-element attribute.It seems like you have some plugin that is changing these elements for some reason. If I had to guess, I’d say the culprit is the Breeze caching plugin. Specifically it seem to be caused by the “deferred loading” functionality of that plugin. If you can turn that functionality off, that should fix the problem.
- The topic ‘New version of Breeze causes AMP validation errors’ is closed to new replies.