amphtml
amphtml copied to clipboard
amp-consent triggering layout shift causing CLS to drop
What's the issue?
amp-consent seems to trigger layout shifts
How do we reproduce the issue?
Look e.g. at this URL: https://rom--ausfluege-de.cdn.ampproject.org/c/s/rom-ausfluege.de/eintritt-vatikan/amp/
- Set Chrome DevTools to 3g and slow CPU
- In DevTools->Rendering activate checkbox for 'layout shift regions'
- Set network to disable cache
- Reload page, look out for the blue flashes - you will see them within the consent popup
Screenshot with the blue overlay indicating the layout flash is here:

Closed via #26819