javascript - load images into shadowbox cache and test if they are there -


i'm using shadowbox load html pages large images. i'd able put images in shadowbox cache start loading when page shadowbox implemented on starts load. think cache feature for. however, can't understand 1) how put images in cache 2) use incache method test if there not (when try console.log(shadowbox.incache("url/adsf.html")) error object doesn't have method)

i thought calling setup() class of anchors want setup load said anchors cache.

from api

setup(links, options) : sets given link element(s) , adds cache given options.

shadowbox.setup("a.astro", {    modal: false,    height: 100,    width: 100 }); 

is correct? don't know since don't know how use incache test if there. seems not since if wait quite while after initial page load,when click through gallery, still have wait image load.

any appreciated!

my jsbin


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -