Skip to content

Instantly share code, notes, and snippets.

@cers
Created March 10, 2010 21:20
function doStuff(doc) {
// must be run when document/resources are fully loaded
$("body",doc).css("background","red");
};
jetpack.tabs.onReady(function(doc){
$(this).load(function(){doStuff(doc);});
if (doc.readyState == "complete") {
doStuff(doc);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment