Liking cljdoc? Tell your friends :D

infinitelives.utils.preload


load-urlscljs

(load-urls urls)

Takes a list of URLs and starts loading each one into a js/Image. Returns a chan. Each time a URL finishes (or errors) the result is pushed down the chan. Result: [progress-radix number-of-urls number-of-urls-remaining image-object event-object] Check image.src for the URL of what was loaded. Check event.type for 'load' or 'error' or 'abort'.

Takes a list of URLs and starts loading each one into a js/Image.
Returns a chan. Each time a URL finishes (or errors) the result is pushed down the chan.
Result: [progress-radix number-of-urls number-of-urls-remaining image-object event-object]
Check image.src for the URL of what was loaded.
Check event.type for 'load' or 'error' or 'abort'.
sourceraw docstring

make-image-result-callbackcljs

(make-image-result-callback finished !remaining num-urls img)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close