move to next item in queue if taking too long

This commit is contained in:
ccd0 2014-09-07 02:29:49 -07:00
parent 7ce54a0f99
commit 3c459bb10a

View File

@ -72,6 +72,7 @@ ImageLoader =
if item = ImageLoader.queue.shift()
[el, url] = item
$.on el, 'load loadeddata error', ImageLoader.loadend
setTimeout (-> ImageLoader.loadend.call el), $.SECOND
el.src = url
ImageLoader.busy = true