Skip to content

Instantly share code, notes, and snippets.

@boucher
Created January 12, 2010 05:49
Show Gist options
  • Select an option

  • Save boucher/274946 to your computer and use it in GitHub Desktop.

Select an option

Save boucher/274946 to your computer and use it in GitHub Desktop.
var documentLoaded = NO;
window.onload = function() {
documentLoaded = YES;
delete window.onload;
}
objj_import(OBJJ_MAIN_FILE, YES, function() {
if (documentLoaded)
main();
else
window.onload = main;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment