Loading JavaScript: Even a caveman can do it 4.35 http://spkr8.com/t/1754

  • Me11-tiny Kyle Simpson 3.97

Description:

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)

Comments on this Talk

Stream.27534 andy.wenk, 09 Nov 08:37 PM

This was one of the best talks for me at JSconf. Kyle is a real good presenter and a funny guy ;-). The idea behind LABjs is to avoid the <script> tags for loading JavaScript files what results in more control and parallel loading of the required files or library's.

Actually I (and Kyle in special) recommend to use a kind of this script loader every time when possible. Back in the office it was the first thing I played around with and successfully used it. Thanks Kyle!

Have an account? Sign in or register.

Leave a Comment

7 Ratings: 4.35

Delivery: 4.40

Content: 4.30

Last Five Ratings