Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cers
Created March 10, 2010 21:20
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 cers/328419 to your computer and use it in GitHub Desktop.
Save cers/328419 to your computer and use it in GitHub Desktop.
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