javascript - IE Image Loading Parallelism -
so created image slideshow player suppose play through 1000's of images @ time.
but rather ask browser preload 1000, have batching mechanism attempts preload in batches.
if set batch preload 25 images in network tab see 25 network requests pop , images being loaded (and completed 200's).
i have threshold set, when there x number of images remaining start preloading next 25. have set 15.
the player step through each image every 1000ms. initial 25 image request take little of 1sec complete (that images). subsequent 25 batch take 2sec complete (so 50 images preloaded).
now when 125 images preloaded , next 25 batch called seeing ie takes 5s decide make request (it comes red in network tab).
so 5s when asked make request , request being made. takes less 1.5s complete request , load image.
so seeing here there seems kind of rate limiting happening or there other things need looking @ why ie refusing make request 5s?
we using edge emulation.
below image preloading. imageobj
domain object url of image.
var imageobj = nextbatch[i]; var tempimage = new image(); tempimage.src = imageobj.url imageobj.image = tempimage;
this image
object gets attached domain object (imageobj
).
this done in settimeout(fn(){}, 0)
make async.
i read article see if there outstanding. didn't see initially.
Comments
Post a Comment