Created
November 29, 2012 10:54
-
-
Save loranger/4168180 to your computer and use it in GitHub Desktop.
Debug jQuery trigger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Lazy Load</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="https://raw.github.com/loranger/lazyLoader/master/lazyloader.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<h1>Lazy Load</h1> | |
<script type="text/javascript" charset="utf-8"> | |
var load = new lazyLoader(); | |
load.jquery(function(){ | |
$('body').append('<h1>jQuery is now avalaible</h1>'); | |
load.js('/js/fireworks.js', function(){ | |
alert('Kaboom'); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment