Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Created May 15, 2014 10:07
Show Gist options
  • Save carlosrojaso/7058eab9c9bb60c7bb53 to your computer and use it in GitHub Desktop.
Save carlosrojaso/7058eab9c9bb60c7bb53 to your computer and use it in GitHub Desktop.
Jquery $( document ).ready()
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
$( document ).ready(function() {
console.log( "document loaded" );
});
$( window ).load(function() {
console.log( "window loaded" );
});
</script>
</head>
<body>
<iframe src="http://techcrunch.com"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment