JSFoo 2013

All about being creative with JavaScript

kashyapa

@kashyapa

Effective JavaScript Module Loading

Submitted Jul 20, 2013

Understand how to effectively load JS modules/files on demand

Outline

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/

Slides

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

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

JSFoo is a forum for discussing UI engineering; fullstack development; web applications engineering, performance, security and design; accessibility; and latest developments in #JavaScript. Follow JSFoo on Twitter more