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
The AMP plugin will automatically move it to the head.
Something to investigate is why the amp-access-scroll script is not removed automatically given that it was not added automatically in the first place. The AMP plugin is supposed to be removing components automatically which are not needed in the document.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered:
westonruter
changed the title
Adding an amp-access-scroll element to the page fails to add required scripts
Adding an amp-access-scroll element to the page fails to add required scripts
Jun 8, 2021
Bug Description
As reported on support forum, when adding amp-access for Scroll to the page, the
amp-access-scroll
component script fail to be added automatically.For example, given this code:
The result is only that the main
amp-access
script is added to the page:Expected Behaviour
Expected the
amp-access-scroll
to also be added:Steps to reproduce
Workaround
There is a workaround and that is to manually add the
amp-access-scroll
component to the page. This can either be done by enqueueing the script:Also, the
script
can just be manually printed out anywhere in the page:The AMP plugin will automatically move it to the
head
.Something to investigate is why the
amp-access-scroll
script is not removed automatically given that it was not added automatically in the first place. The AMP plugin is supposed to be removing components automatically which are not needed in the document.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: