Skip to content
Create a gist now

Instantly share code, notes, and snippets.

reload all images every 5 seconds
setInterval(reload_images, 5000);
function reload_images(){
function reload_image(){
var img = $(this), src ='src');
if (typeof src === 'undefined'){
src = img.attr('src');'src', src);
src = src + (/\?/.test(src) ? '&' : '?') + 'at=' +;
img.attr('src', src);
console.log('reloading', img, src);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.