react-native/Libraries/JavaScriptAppEngine/Initialization
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
..
ExceptionsManager.js [react_native] JS files from D2115306: implement ExceptionsManager.report(Fatal|Soft)Exception 2015-06-02 07:41:40 -08:00
InitializeJavaScriptAppEngine.js Added incremental XMLHttpRequest updates 2015-06-05 15:21:25 -08:00
SourceMap.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
loadSourceMap.js Fixed infinite #clowntown error loop 2015-05-14 12:19:15 -08:00
parseErrorStack.js [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
source-map-url.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00