The Once And Future Script Loader

A session at JSDay 2011

Thursday 12th May, 2011

2:00pm to 3:00pm (CET)

Like the tales of King Arthur, the history, mythology, and lore of script loaders is teeming with both fact and fiction. If we’re going to achieve the destiny of true web performance optimization in our page loads, we’re going to have to separate the myths from the truths.

We’re going to take a brief look at the history of script loading techniques, looking at what survived and what didn’t, and why. We’ll also look at some of the techniques that are still around but shouldn’t be!

Then we’re going to jump into a broad review of current script loading techniques. We’ll cover from the very basic single-script snippets (like the “async snippet” from Google Analytics), to general script loaders like LABjs and HeadJS (and several others). We’ll also look at task-specific script loaders such as those found in frameworks (Dojo, YUI, etc). Our goal will be to identify the characteristics of each loader and loading technique, to give you solid information you can use when choosing the right script loader for your sites.

We’ll also survey the current state of browser technology and the HTML specification standards for these loading techniques, and also talk briefly about where those things are headed in the future.

Next, we’ll gaze into the crystal ball to look at the future of advanced use-cases for script loading, such as module dependency (RequireJS) and deferred script execution (ControlJS). We’ll talk about why these things are so valuable, and give you practical do’s and don’ts for implementing these techniques right now.

Lastly, we’ll conclude with a quick discussion of how server-side technology can help improve the capability and performance of script loading in the browser.

The rich history, diverse current state, and bright future for script loaders is both technically challenging and highly rewarding in performance gains, if you accept the quest.

About the speaker

This person is speaking at this event.
Kyle Simpson

All things JavaScript, Open Web Evangelist

Coverage of this session

Sign in to add slides, notes or videos to this session

JSDay 2011

Italy Italy, Verona

11th12th May 2011

Tell your friends!

When

Time 2:00pm3:00pm CET

Date Thu 12th May 2011

Short URL

lanyrd.com/sdrym

View the schedule

Share

Books by speaker

  • You Don't Know JS: this & Object Prototypes
  • You Don't Know JS: Scope & Closures
  • HTML5 Cookbook

See something wrong?

Report an issue with this session