amp-ad: clicking on an ad in safari causes the ad to disappear on returning to the page
What's the issue?
We're seeing this behavior on our ads in Safari, which may be related to the amp framework. After clicking on an ad and going back, the ad does not display
How do we reproduce the issue?
- Visit https://qa.yieldmo.com/test/amp?ym_force_pname=&adResponseInput=&rf_force_lf=&rf_force_p=1300637378475834068&ym_force_configuration=&environment=AMP in mobile emulation
- Click on the Ad
- Go back
- Expectation is that the ad would display/resize the same as if loaded in the viewport
What browsers are affected?
Only Safari, using Version 11.1 (13605.1.33.1.2)
Which AMP version is affected?
amp Version 1531800879103
fyi @merrdy
I was able to reproduce with simulator back to safari 9.0
I noticed that whenever I had the console opened to inspect the page, the issue was gone. And the previous ad was displayed before rather than the ad loader whenever the issue occurred. Given that I suspect that it has something to do with the Safari back-forward cache. I'll further investigate.
@harquail I can confirm that this is due to the Safari back-forward cache. If I reload the page the issue is gone.
I've tested with another image ad, and the image ad works ok. I've also tested with a scrollbound animation ad that's implemented in AMP and it works fine too. At this point I wonder if it's somecode within the ad creative that cause the ad to break due to the back-forward cache.
Does the same ad creative works with non AMP page? If so do you think it's because there's some information missing from the parent AMP page at the pageshow event. Thanks
The same creative works outside of amp (eg. https://qa.yieldmo.com/test/cop?ym_force_pname=&adResponseInput=&rf_force_lf=&rf_force_p=1300637378475834068&ym_force_configuration=&environment=COP). We can do more investigation on our side to see what the root cause is.
This issue hasn't been updated in awhile. @zhouyx Do you have any updates?
@harquail is this still an issue for you all?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.