Skip to content

Instantly share code, notes, and snippets.

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