-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Description
When amp-consent is used on a page, the content of the consent layer is displayed in an iframe. This Iframe is invisible first and then moved to a visible position in the page. Due to this move, the iframe is loaded twice and therefore cases the content of the iframe to also load twice (e.g. fireing counting pixels twice).
Reproduction Steps
Consent layer is first loaded as this:

and then immediatly moved to here:

This causes the iframe to load twice.
Same issue can be found on other pages, e.g.:
https://www.google.com/amp/s/www.sueddeutsche.de/bayern/corona-bayern-aktuell-lollitest-kita-testpflicht-1.5402821!amp (loads https://consent-cdn.sueddeutsche.de/amp/index.html multiple times)
https://www.google.com/amp/s/amp.tagesspiegel.de/politik/furcht-vor-politischem-vakuum-so-blickt-die-welt-auf-die-bundestagswahl/27608470.html (loads https://cdn.privacy-mgmt.com/wrapper/tcfv2/v1/gdpr/native-message?requestUUID=... multiple times)
Relevant Logs
No response
Browser(s) Affected
No response
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
No response