简体   繁体   中英

Mobile Browser (iPad/iPhone/iPod/Android) crashes when updating image continuously javascript

we are trying to update the image src with base64 string using data URIs on our webpage every second with Java Script.

Java Script(AJAX) gets the latest image from webserver.

But all mobile browsers crashing after 5-10 mins. crash dump says, browser is crashing because of low memory.

is there any way to cleanup the memory programatically.

thanks in Advance.

Regards, Kartheek

I haven't tested this myself but according to a comment on this webpage:

cubiq.org/testing-memory-usage-on-mobile-safari

base64 string images are not properly garbage collected by MobileSafari, causing MobileSafari to crash at what seems random places. I think it's worth trying to use regular image links and see what happens.

Also keep in mind that there is an image data memory limit around 10M.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM