Namespace: ImageLoader

PANOLENS.Utils. ImageLoader

Methods


<static> load(url, onLoad, onProgress, onError)

Load an image with XMLHttpRequest to provide progress checking
Parameters:
Name Type Description
url string An image url
onLoad function On load callback
onProgress function In progress callback
onError function On error callback
Source:
Returns:
- DOM image element
Type
HTMLImageElement