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

true, we are used to using the shorthand notation in fact at SO we use a special internal variant called StackExchange.ready for a similar purpose, you could get $(document).ready remapped with a similar trick if you wanted, or you could simply push the inlines to the bottom as well.


Here's my attempt at the similar trick, covering all 4 possible ways to bind to DOM ready using jQuery: http://blog.colin-gourlay.com/blog/2012/02/safely-using-read...




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

Search: