Re: [whatwg/xhr] Synchronous XMLHttpRequest should be allowed in prerender scripts (JS in <head>) (#253)

I realized that Chrome will not emit this as a warning if the code is executing in the `beforeunload` block.

https://chromium.googlesource.com/chromium/src/+/1d328b0e963f7af9e63a4ceeb6bab908b566c848/third_party/blink/renderer/core/xmlhttprequest/xml_http_request.cc#699

Thus, I think it's reasonable to extend this as well to the `DOMContentLoaded` block.

-- 
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/253#issuecomment-524359059

Received on Friday, 23 August 2019 15:29:13 UTC