move to next item in queue if taking too long
This commit is contained in:
parent
7ce54a0f99
commit
3c459bb10a
@ -72,6 +72,7 @@ ImageLoader =
|
|||||||
if item = ImageLoader.queue.shift()
|
if item = ImageLoader.queue.shift()
|
||||||
[el, url] = item
|
[el, url] = item
|
||||||
$.on el, 'load loadeddata error', ImageLoader.loadend
|
$.on el, 'load loadeddata error', ImageLoader.loadend
|
||||||
|
setTimeout (-> ImageLoader.loadend.call el), $.SECOND
|
||||||
el.src = url
|
el.src = url
|
||||||
ImageLoader.busy = true
|
ImageLoader.busy = true
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user