amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

demo viewer integration code must buffer messages if actual viewer code is not ready to receive message

Open erwinmombay opened this issue 10 years ago • 5 comments

erwinmombay avatar Jan 22 '16 18:01 erwinmombay

Doesn't it already do that?

https://github.com/ampproject/amphtml/blob/master/src/service/viewer-impl.js#L543

ericfs avatar Jan 22 '16 20:01 ericfs

@ericfs , i think we need one the other direction. ill clarify that i need to make this change in our demos mostly since this is going to be viewer related code.

Right now, visibility changes can get dropped if the viewer posted a message and the viewer code in amp.js has not started listening yet.

erwinmombay avatar Jan 22 '16 20:01 erwinmombay

In that case you may need a way to ask for viewability info.

cramforce avatar Jan 22 '16 20:01 cramforce

I think asking for whatever might have changed is rather cumbersome. "I'm ready to receive" is pretty common. I think we may already have it in other viewers implemented as well.

dvoytenko avatar Jan 22 '16 20:01 dvoytenko

Hey,

The AMP community has been working nonstop to make AMP better, but somehow we've still managed to grow an enormous backlog of open issues. This has made it difficult for the community to prioritize what we should work on next.

A new process is on the way and to give it a chance for success we will be closing issues that have not been updated in awhile.

If this issue still requires further attention, simply reopen it. Please try to reproduce it with the latest version to ensure it gets proper attention!

We really appreciate the contribution! Thank you for bearing with us as we drag ourselves out of the issue abyss. :)

adelinamart avatar Feb 03 '17 20:02 adelinamart