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

Synchronous XMLHttpRequest #158

Closed
Z3TA opened this issue Oct 5, 2017 · 3 comments
Closed

Synchronous XMLHttpRequest #158

Z3TA opened this issue Oct 5, 2017 · 3 comments

Comments

@Z3TA
Copy link

Z3TA commented Oct 5, 2017

Synchronous XMLHttpRequest's can be useful when you want to block the script, for example when loading in modules from cache. Do not deprecate it! There could be an optional console warning if it's not loaded from cache though.

@annevk
Copy link
Member

annevk commented Oct 5, 2017

Even from the cache it's bad as I/O can be rather slow in general. Anyway, this is a duplicate of #20.

@annevk annevk closed this as completed Oct 5, 2017
@Z3TA
Copy link
Author

Z3TA commented Oct 6, 2017

@annevk The push chache is really fast, and I/O is usually not the bottleneck now a days with fast ssd's and GbE. The latency should be below the monitor's refresh rate. But lets say you do load it async, you would still have to wait for it!

@annevk
Copy link
Member

annevk commented Oct 6, 2017

Yes, but at least the UI is not blocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants