JSFoo 2013

All about being creative with JavaScript

Effective JavaScript Module Loading

Submitted by kashyapa (@kashyapa) on Saturday, 20 July 2013

videocam_off

Technical level

Intermediate

Section

Full talk

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +9

Objective

Understand how to effectively load JS modules/files on demand

Description

Web Pages are incomplete without the JavaScript files. And you will certainly not have 1 JavaScript file to load in your apps. So what do you do, you will have <script> tags loading all the JS files required for your page whether you need it or not. Usually this is because you have a layout page where you add all your JS file references.
There is a better way to do this. Gone are the days where you have to put all pages in one place. In this session we will understand how you can load the JS files or modules on demand. We will look at a JS library called Require.js which helps us in modular loading of JS files.

Requirements

JavaScript knowledge

Speaker bio

My Bio : http://about.me/kashyapa
My Video PodCast show : http://www.kashyapas.com/category/uncutandunedited/
My Speaking Engagements - http://www.kashyapas.com/category/speakings/

Links

Slides

http://www.slideshare.net/kashyapa/effective-javascript-module-loading

Comments

  • 3
    Ashwin Acharya (@ashwnacharya) 5 years ago

    Will you be covering anything besides an intro to RequireJS?

  • 3
    Sreekanth Vadagiri (@sreeix) 5 years ago

    I wonder if there is enough material for for 30-40 minutes?
    Also looking at alternatives like webpack/browserify might give a good perspective.

Login with Twitter or Google to leave a comment