ios - Mobile Safari/WebKit memory issues -


we writing html 5 app requires large files loaded.

we loading binary data files via ajax. app crashes on ipad.

upon further investigation instruments on mac noticed while downloading file, memory allocated webkit exponentially grows runs out of memory. (100mb file grows memory on 550mb browser crashes)

we tested loading kinds of other types of files via other methods such image obj shown below.

function testimage() {         var download = new image();         download.src = 'data/33mb.jpg?n=' + new date().gettime();     } 

after above 33mb image loads, instruments show memory has grown 309 mb.

instruments panel

and here sample xhr call same results loading large binary file.

function testxhr() {     var xhr = new xmlhttprequest();     xhr.open('get', 'data/100mb.bin?n=' + new date().gettime());     xhr.send(); } 

we baffled happening. how load large files on safari mobile?

any insight appreciated. in advance.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -