jquery 1.9.1 ajax memory leak on ios7.1.2
The following code i run on iPhone5 UIWebView and test by Instruments.
The imageData.js contains 1.5M image encoded by base64.
$.ajax({ url: "js/imageData.js", dataType: "script", cache:false, success: function(){ $("#tryImg").attr("src","data:"+imageBase64); } });
Finding:
1. When calling the data without cache. The WebCore purgeable data cannot release and memory keep expend while ajax repeat call.
2. When ajax is cached. There is only one WebCore purgeable data copy and no memory expend.