ericfs
ericfs
When a Viewer loads a document with a visibility state other than visible, the amp-pixel should not send requests until the state changes to visible.
experimental-viewer-integration.js is no longer necessary and can be removed
Tested with the lightbox on /examples/everything.amp.html Steps: Click on the "Responsive (w/srcset, w/lightbox)" image Close the lightbox by either clicking using the browser back button Note that there is now...
Simple example of the problem in: http://output.jsbin.com/jasoko To reproduce: Swipe down on the text (from top to bottom) Then quickly try swiping up and down There are two things to...
This may just be confusion on my part, but I would expect the AMP doc to load no resources when prerenderSize is 0. That was my interpretation of this comment:...
When an document is swiped in the viewer, it is still visible in the window, but it also shouldn't be considered fully visible. For example, it would be good to...
Add support for a getState request from the viewer which will serialize any state that needs to be restored after a document unload and then reload such as scroll position.
The viewer will send an "unload" event to notify the doc that it is about to be unloaded. This should cause a visibility state change so that analytics can flush...
If the loadStore request is sent to the viewer before the messageDileverer is set, then the response is ignored: https://github.com/ampproject/amphtml/blob/master/src/service/viewer-impl.js#L756 cc/ @dvoytenko
https://github.com/ampproject/amphtml/blob/master/src/service/viewer-impl.js#L144 In a WebView, there is no win.parent so the above check is false. ## What browsers are affected? WebView ## Which AMP version is affected? All