Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append ad iframe _after_ registering listeners #2942

Merged
merged 1 commit into from
Apr 19, 2016

Conversation

jridgewell
Copy link
Contributor

When the ad's iframe is already cached, we can end up running it's code
before we register our event listeners on it. That really stinks for
ads, because they need to send a render-start event to us for us to
show them and we're not even listening for it when they send. :sadpanda:

Fixes #2933.

When the ad's iframe is already cached, we can end up running it's code
before we register our event listeners on it. That really stinks for
ads, because they need to send a `render-start` event to us for us to
show them and we're not even listening for it when they send. :sadpanda:
@cramforce
Copy link
Member

Great catch!

LGTM

@erwinmombay erwinmombay merged commit 2a7b33c into ampproject:master Apr 19, 2016
@camelburrito
Copy link
Contributor

wow!!
LGTM

please add an assert on iframe_helper to warn when this happens!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants