question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

amp-embed can become stuck in the loading state after an amp-consent choice is made

See original GitHub issue

What’s the issue?

An amp-embed element behind a data-block-on-consent attribute can fail to load following a choice being made in amp-consent. The element will hang with the spinning icon and no iframe is inserted into amp-embed element.

On occasion when this happens it will affect all elements behind data-block-on-consent including amp-ad.

It happens most often with amp-embed and was seen on the Google CDN by a client. When it does happen the affected elements are left in a perpetual loading state.

In the instances where only amp-embed is affected we can see that amp-consent correctly passes on the consent details as we can see the consent string value in DFP calls for amp-ad elements.

Here is a video using iOS simulator that displays the issue with just the amp-embed failing after making a consent choice.

Note that this only happens on the first visit as a new user, once refreshed everything works as expected and that we see no issues with amp-embed loading.

How do we reproduce the issue?

The original internal reporter spotted it on the Google CDN but as a team we haven’t been able to recreate it by happenstance. We can however recreate it on occasion using a private/incognito tab on an iOS device.

https://www.google.com/amp/s/www.dailymail.co.uk/sport/football/article-9110445/amp/William-Saliba-set-join-Nice-loan-end-season.html

  1. Visit the above article on the Google CDN in iOS safari with a new incognito/private tab. You’ll need to be using an EU connection for amp-consent
  2. Hit the the green Got it button.
  3. Once the overlay has disappeared scroll down to the end of the article after the social sharing bar and comments block to the taboola amp-embed.
  4. Note on occasion that the amp-embed will just hang with the amp loading icon.

What browsers are affected?

iOS safari/chrome

Which AMP version is affected?

2011252111003

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
micajuine-hocommented, Jan 11, 2021

I will close this issue for now, but please reopen if it crops up again.

0reactions
micajuine-hocommented, Jan 8, 2021

No recent consent changes come to mind. Would be interested to see if this issue pops up again in the near future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

amp-consent - Documentation
The purpose can be any of 1) determine if consent is required for the user, 2) get the consent state from server, 3)...
Read more >
amp-consent UI does not show when scrolling #31580 - GitHub
It is present in the DOM, but it's off the screen due to its CSS styling. It seems the following CSS isn't being...
Read more >
Release Notes (Web Player)
The web player release notes highlight the additions and improvements JWP has made to the JW8 web player code. If you have any...
Read more >
AMP - Restrict consent collection to region - Sourcepoint
Note: When using <amp-geo> to restrict collection to specific region(s) do not add any geo-restrictions to your scenarios on the AMP property.
Read more >
filters.txt - GitHub
Users should not have to punch holes in their blockers if it can be avoided. */fuckadblock-$script ... Fix navbar being stuck in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found