Skip to content

Instantly share code, notes, and snippets.

@ryankshaw
Forked from zwily/gist:745204
Created December 17, 2010 16:37
Show Gist options
  • Save ryankshaw/745234 to your computer and use it in GitHub Desktop.
Save ryankshaw/745234 to your computer and use it in GitHub Desktop.
$(function() {
setInterval(function() {
$(".reloadable").each(function(i) {
var originalSrc = $(this).data('originalSrc');
if (!originalSrc) {
originalSrc = $(this).attr('src');
$(this).data('originalSrc', originalSrc);
}
$(this).attr('src', originalSrc + '&hack=' + (new Date().getTime()));
});
}, 3000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment