(If there is a question which answers this, please let me know)
I'm looking for suggestions for cross-browser XHR support, with-in workers.
In the normal VM, I usually use jQ for XHR stuff. It seems like overkill to load jQ into a worker, just for the AJAX support (assuming that's doable; haven't tried).
Suggestions?
I don't think there would be much point in firing a XML HTTP request from a web worker. After all, these requests are meant to be asynchronous! :)
Interestingly enough, someone suggested implementing support for XHR in web workers in the core of jQuery, but there's a very detailed response as to why it maybe isn't a good idea.
Some of his reasoning for why not to do it are:
Quite a good read really
http://bugs.jquery.com/ticket/9889
Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With