Skip to content

Instantly share code, notes, and snippets.

@malsup
malsup / refreshBackgrounds.js
Created February 17, 2012 22:28 — forked from mavenlink/refreshBackgrounds.js
Fix Chrome background refresh bug
// might as well make it a plugin
$.fn.fixChromeBg = function() {
if (! /chrome/i.test(navigator.userAgent) )
return this;
return this.each(function() {
var el = $(this), bi = el.css( 'background-image' );
if (bi) {
setTimeout(function() {