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

Disable sync-xhr in amp-iframe/amp-ad #13766

Closed
RByers opened this issue Mar 2, 2018 · 8 comments
Closed

Disable sync-xhr in amp-iframe/amp-ad #13766

RByers opened this issue Mar 2, 2018 · 8 comments

Comments

@RByers
Copy link

RByers commented Mar 2, 2018

What's the issue?

Chrome 65+ allows synchronous XHR to be disabled. Blocking the UI thread on the network is a perf anti-pattern and so should probably not be allowed in AMP documents or embeds.

How do we reproduce the issue?

  1. Create an amp page with an amp-iframe to a site doing a sync-xhr
  2. View in the top stories carousel
  3. Observe jank if you try to swipe when the sync-XHR occurs (especially on a slow network - use throttling in devtools to emulate).

What browsers are affected?

Chrome for now, but at TPAC all other browsers indicated a desire to add this feature as a first step of trying to phase-out sync-xhr.

Which AMP version is affected?

All

/cc @clelland @cramforce with whom this has been discussed offline.

@cramforce
Copy link
Member

I think we should launch this for amp-ad and amp-iframe.

@lannka Could you take this on?

@cramforce cramforce changed the title Disable sync-xhr in amp-iframe Disable sync-xhr in amp-iframe/amp-ad Mar 17, 2018
@cramforce
Copy link
Member

to @jastiv for prioritization.

@jasti
Copy link
Contributor

jasti commented Mar 19, 2018

Given current commitments, it looks like we'll tackle this in the second half of April.
CC @zhouyx

@cramforce
Copy link
Member

I'll try to implement on my flight back from Australia. I'll implement behind an experiment and then we can see how we can ship it.

@jasti
Copy link
Contributor

jasti commented Jul 16, 2018

@cramforce did you have a chance to look at this? If not, we can probably reassign to someone on the ads team.

@cramforce
Copy link
Member

Turned this on in canary 5 minutes ago in #16524

Implementation in #14481

cramforce added a commit to cramforce/amphtml that referenced this issue Aug 31, 2018
cramforce added a commit that referenced this issue Aug 31, 2018
@cramforce
Copy link
Member

Shipping this with our next prod release. Let's see how it goes :)

@cramforce
Copy link
Member

Shipped yesterday 🎉

Enriqe pushed a commit to Enriqe/amphtml that referenced this issue Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants