amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Incorrect unpausing on back navigation to AMP doc

Open cramforce opened this issue 10 years ago • 4 comments

It appears that when you

  1. E.g. have an ad on a page
  2. Click on a link to navigate away
  3. Click back

the ad is not shown.

Could it be that we pause on unload? Or is anything else going on.

cramforce avatar Apr 18 '16 16:04 cramforce

Slotting into this current sprint, given the high priority, but please update if that's not right

ericlindley-g avatar Apr 18 '16 21:04 ericlindley-g

I'm unable to produce on a standalone AMP page (local build, with ad unloading). Might be a viewer interaction causing it? @ericfs.

jridgewell avatar Apr 18 '16 22:04 jridgewell

I'm also not able to reproduce when using a viewer.

ericfs avatar Apr 18 '16 22:04 ericfs

Got a reproduction thanks to Malte. This only affects elements inside the viewport. For some reason, inViewport is false for them, even though the #renderOutsideViewport code has detected they are in viewport.

Definitely does not have to do with #unlayout, though.

jridgewell avatar Apr 18 '16 23:04 jridgewell