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

OK, so there's a "get current time" callback that the widget calls every time the user clicks a "Now" button, and inside that callback you do sync XHR? Or do you do sync XHR before the widget becomes visible and use a cached value + interpolation?

Have you looked into delivering the server's time in `<html data-server-time="2016-03-21T10:25:25Z">` or similar? And if it's a long-lived page and time drift is a problem, maybe sync with async XHR once in a while?

Whatever is the case, while the sync XHR request is in flight, it won't be possible to interact with anything else on the page, right? That's the problem, it doesn't go any deeper AFAIK.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/20#issuecomment-199215563

Received on Monday, 21 March 2016 10:28:09 UTC