Skip to content

Instantly share code, notes, and snippets.

@timbroder
Created July 16, 2012 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timbroder/3124372 to your computer and use it in GitHub Desktop.
Save timbroder/3124372 to your computer and use it in GitHub Desktop.
function reloadStylesheets() {
var queryString = '?reload=' + new Date().getTime();
$('link[rel="stylesheet"]').each(function () {
this.href = this.href.replace(/\?.*|$/, queryString);
});
}
@johnbender
Copy link

yar! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment