Re: [xhr] Abandon hope of removing sync XHR from the web platform? (#20)

There is no blank, you got it right. As you said: "only report them as successfully downloaded and rendered when they really are",  this should be the ideal solution. But as long as MoPub keeps adding the last script segment "automatically" and doesn't provide a mechanism to callback on success, Sync XHR is the only way.

Few notes:
1. There is no such thing like MoPub.AdReceivedSuccess() or MoPub object. I used these for clarity instead of their javascript codes and url redirections.

2. At present I can "swizzle" some mopub methods found by inspecting and make it work w/o Sync XHR. But its not reliable as mopub can change their implementation anytime.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/20#issuecomment-187595043

Received on Tuesday, 23 February 2016 08:06:36 UTC