You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a site using amp-access adds an integration to the Scroll network, it is required to load the amp-access-scroll extension script (see docs).
However, the validator does not detect this issue as it is missing a rule to recognize this use case. This is clearly an invalid AMP page, though, as the functionality it is trying to use is broken if that dependency is missing.
This also means that the auto-extensions transformer in the NodeJS and PHP toolbox packages will not properly add the required amp-access-scroll extension script automatically, leading to a broken page.
Here's a playground example which should throw a validation error, as the required amp-access-scroll extension script is not loaded even though it is being used by the markup: Playground example
The text was updated successfully, but these errors were encountered:
Requiring the extension would be a breaking change at this point, since it would invalidate pages that already lack the extension and kick them off-cache. But it's up to @ampproject/wg-caching to say.
@schlessera As Alan pointed out, this risks breaking pages using amp-access-scroll. As a result of the extra effort required to assess the risk, I'm bumping the priority down. One thing that would help as a first step would be to add a test case for this that should return a validator error. Would you be interested in making that PR?
What's the issue?
If a site using
amp-access
adds an integration to the Scroll network, it is required to load theamp-access-scroll
extension script (see docs).However, the validator does not detect this issue as it is missing a rule to recognize this use case. This is clearly an invalid AMP page, though, as the functionality it is trying to use is broken if that dependency is missing.
This also means that the
auto-extensions
transformer in the NodeJS and PHP toolbox packages will not properly add the requiredamp-access-scroll
extension script automatically, leading to a broken page.Related issue: https://github.com/ampproject/amp-wp/issues/5999
How do we reproduce the issue?
Here's a playground example which should throw a validation error, as the required
amp-access-scroll
extension script is not loaded even though it is being used by the markup: Playground exampleThe text was updated successfully, but these errors were encountered: