Skip to content

Instantly share code, notes, and snippets.

@clauswitt
Forked from getify/index.html
Created November 24, 2011 13:25
Show Gist options
  • Save clauswitt/1391344 to your computer and use it in GitHub Desktop.
Save clauswitt/1391344 to your computer and use it in GitHub Desktop.
showing how i use $LAB in my pages -- aka, best-practice recommendation
<!DOCTYPE html>
<html>
<head>...</head>
<body>
...
<script src="load.js"></script>
</body>
</html>
/* ****** inline LAB.js here ****** */
// now, include your $LAB chains
$LAB.script(".../facebook.js").wait(function(){
// facebook init
});
$LAB.script(".../ga.js").wait(function(){
// ga init
});
$LAB.script(...).wait(...).script(...);
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment