skrollr-stylesheets icon indicating copy to clipboard operation
skrollr-stylesheets copied to clipboard

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

Open sbefort opened this issue 9 years ago • 1 comments

If you use this library with Chrome, you get this warning in the console.

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

sbefort avatar Apr 18 '15 05:04 sbefort

I've seen the warning as well, but I don't care at the moment. I understand why the warning is there and you should never do synchronous xhr when user interaction is involved, but skrollr-stylesheets fetches the things immediately (downloading of scripts is blocking anyway) and skrollr-stylesheets requests stylesheets which have already been downloaded and cached by the browser. It's more like a cache-lookup than a request.

Prinzhorn avatar May 03 '15 06:05 Prinzhorn