Hacker News new | past | comments | ask | show | jobs | submit login

The AJAX examples fall a little flat. Yes, .ajax is a wrapper, and it was written because the API for XMLHTTPRequest is needlessly complicated and verbose.

If you're developing a single page application, you only load jquery once, then do the rest with AJAX calls for JSON and assets. It's worth the <100 KB on initial page load, at least for the projects I've worked on.




Not to mention that if you're loading jQuery via a CDN, there's a good chance that your end user has it in their cache already.




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

Search: