Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So is the article saying you are basically putting an alias for jQuery's `$` in the header and so if you need to put `$(function() {});` or `$(document).ready(function(){})` elsewhere in your page you rely on that alias and then once jQuery has loaded, map the `$` to it?


That is one technique you can use to assist you in pushing your jQuery include to the bottom, the others are having a smart script registration piece that takes care of it for you or running code that rewrites the html like blaze.io does


Complex solution to simple problems.


Yes, WTF worthy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: