amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-consent triggering layout shift causing CLS to drop

Open martinschierle opened this issue 6 years ago • 1 comments

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:

image

martinschierle avatar Mar 20 '20 14:03 martinschierle

Closed via #26819

micajuine-ho avatar Apr 28 '20 21:04 micajuine-ho