Main Content

Loading JavaScript: Even a caveman can do it

A talk by Kyle Simpson

About the Talk

November 8, 2009 5:30 AM

No matter how awesome your JavaScript code is, we all face the same problem: how to squeeze it down the wire and get it loaded and running in the browser as quickly and efficiently as possible. There are about as many ways to approach this problem as there are developers trying to solve it, which makes the landscape of JavaScript Loading solutions confusing and painful to navigate. But it doesn't have to be so ugly. We're gonna break it down so you can come away feeling more confident in how best to load your JavaScript. Several common strategies will be covered, including:

  • Build-time versus on-the-fly techniques
  • Code organization/compression (minification, gzip, etc)
  • File concatenation
  • Inline scripts
  • Dynamic parallel loading of JavaScript resources (LABjs, etc)
  • Cache optimization (initialization profiling, on-demand loading, pre-fetching, etc)

Ratings and Recommendations

Avg. Rating

Average based
on 7 ratings

comments powered by Disqus