Skip to content

Instantly share code, notes, and snippets.

@alycda
Created December 11, 2013 21:33
Show Gist options
  • Select an option

  • Save alycda/7918835 to your computer and use it in GitHub Desktop.

Select an option

Save alycda/7918835 to your computer and use it in GitHub Desktop.
// put this in head.
<script type='text/javascript'>window.q=[];window.$=function(f){q.push(f)}</script>
// anywhere throughout the body.
<script>
$(function(){
// call jQuery before it's loaded.
});
</script>
// put this at end of document.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="_/vendor/jquery-1.10.2.min.js"><\/script>')</script>
<script>$.each(q,function(i,f){$(f)});</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment