react-native/Libraries/JavaScriptAppEngine
Nick Lockwood e00b9ac8f3 Added incremental XMLHttpRequest updates
Summary:
@public

Previously, our XMLHttpRequest implementation would only update the readyState when the download was fully completed. This diff adds support for receiving incremental data updates as the download happens, which can be monitored by adding the onreadystatechange event handler.

As a performance optimization, incremental data updates are only sent if the onreadystatechanged handler has been set in the JS, otherwise it just sends the whole data block once download is complete, as before.

Test Plan:
* Run the UIExplorer XMLHttpRequest example (in both OSS and Catalyst) to see incremental downloads working.
* Run the Movies app to see regular (non-incremental) downloads in action
* Run any network-based app in Catalyst shell to verify RKDataManager still works
2015-06-05 15:21:25 -08:00
..
Initialization Added incremental XMLHttpRequest updates 2015-06-05 15:21:25 -08:00
System/JSTimers revert D2087892 2015-05-31 11:35:55 -08:00
polyfills [react-native] Make document.js into a polyfill. Fixes #1149 2015-05-13 17:50:21 -08:00