You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Web world, Synchronous XMLHttpRequest in the main thread often is considered as a bad thing and will trigger warning in the browsers. Even there are many people requesting to keep this feature. (By the way, I think Web API designers may also forbid "while" and "for" in the main thread since those could also freeze UI. :-) )
However, in the desktop application, the application don't have other browser tabs and sometimes the application will do a network request to a trusted local server. So a traditional code with synchronous XMLHttpRequest is very simple:
let data = aSimpleSynchronousXMLHttpRequest(....);
consume(data);
So I hope if NW.js can keep Synchronous XMLHttpRequest alive at least. And if possible, it would be super awesome to improve the old XMLHttpRequest API and make it can take synchronous with a timeout option, just like the popular C++ curl APIs.
You guys are C++ guru and hope you guys can make the Web world better.
The text was updated successfully, but these errors were encountered:
NWJS Version : N/A
Operating System : N/A
In the Web world, Synchronous XMLHttpRequest in the main thread often is considered as a bad thing and will trigger warning in the browsers. Even there are many people requesting to keep this feature. (By the way, I think Web API designers may also forbid "while" and "for" in the main thread since those could also freeze UI. :-) )
However, in the desktop application, the application don't have other browser tabs and sometimes the application will do a network request to a trusted local server. So a traditional code with synchronous XMLHttpRequest is very simple:
let data = aSimpleSynchronousXMLHttpRequest(....);
consume(data);
So I hope if NW.js can keep Synchronous XMLHttpRequest alive at least. And if possible, it would be super awesome to improve the old XMLHttpRequest API and make it can take synchronous with a timeout option, just like the popular C++ curl APIs.
You guys are C++ guru and hope you guys can make the Web world better.
The text was updated successfully, but these errors were encountered: