Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Lazy Loading JavaScript with RequireJS (joezimjs.com)
2 points by shawndumas on March 21, 2013 | hide | past | favorite | 1 comment


I hope I'm not the only one, but I really do feel lazily loading javascripts is an overkill and not worth it in 99% of cases.

Even if your concatenated .js file ends up being huge, well, you can set expires headers for a year, and then asynchronously load it on the login/landing page. By the time a user will log in, they will already have the js loaded and ready to fire - not affecting performance in any way.

Unless I'm missing something?




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

Search: