javascript - jQuery .load() not firing on images (probably caching?) -


i have pretty basic jquery code:

... $(this).find('img').load(function(){    loadedimages++;    if(loadedimages == $this.find('img').length){ ... 

however, thats not firing consistently. fires if hard refresh or close browser, normal refresh, or hitting same url twice @ time without erasing cache makes .load() never fire.

any ideas on how fix this?

a way add "dummy variable" @ end of url use grab image... such time in milliseconds appended query string param.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -