Write better Javascript with RequireJS

Session Audio

Excerpt

Web frameworks have done a good job of organizing the server side code in our web applications. But that doesn't help with Javascript. RequireJS helps you solve this problem.

Description

RequireJS provides a way of writing Javascript that keeps your code modular and easy to read, while also keeping it small and fast.

RequireJS is a tool that handles asyncronous Javascript resource loading. It helps with making your js tools modular and portable, provides you with an easy way to let JS modules inherit from each other, and compiles and minimizes your js code using the Google Closure compiler.

I’ll introduce you to RequireJS, show you how to use it write and inherit from your own Javascript modules, and then go into more advanced uses. We’ll get into loading modules sequentially, text, templates, and css, and finally we’ll show you how to automate stripping out debug code and compiling your Javascript down to a single minified file.