Is there an image load/size max limit in a web view?
I use the following jQuery code to load 684 images into a web view, however only 295-298 of them seem to load in the simulator. I've tested this a few times and it seems to vary, never loading more than 300.
var j = 0;
for (var i = 1; i <= 684; i++)
{
$('<img/>', {
src: 'app://com.company.app1/img_' + i + '.jpg',
load: function () {
j++;
Ti.API.info(j);
}
}).appendTo('body');
}
Is this a known limit of the iPhone web view? The images are around 25KB (300 x 300px) so I don't know if it's because of the overall size of the images loaded into the web view or not?
Any help would be appreciated,
Thanks, Stu!