chrisben / imgcache.js

JS library based on the File API to cache images for offline recovery (target: cordova/phonegap & chrome)
Other
826 stars 216 forks source link

Use with js array of images, instead of html img src? #192

Closed jamminjames closed 7 years ago

jamminjames commented 7 years ago

Will this work with a javascript array of images? Or is it only set up to cache images in an html gallery type situation?

chrisben commented 7 years ago

You can use this library how you want. It has helper functions to cache images from an html page, but you can use it with your images in javascript via their urls.

jamminjames commented 7 years ago

Would that require rewriting the helper functions? If so, can you give me a hint as to how to do that?