/ best free open source web resources /

Graphic Resources

JSLoader – Javascript Libraries on Demand

Posted · Category: Framework, LGPL License


JSLoader is a dead-simple, non-intrusive “Javascript-on-demand” packaging convention which helps developers and the internet community rapidly develop and prototype applications without the headache of figuring out the witches’ brew of files that need to be copied, included, etc. You do not need to download anything to use all the Javascript frameworks. it is because multiple sites will share this code the browser and proxy caches will help make things more efficient.

All Javascript Libraries are already installed on their server, so all you need to do is create a <script></script> tag with inside <noautolink> of your page and you should be able to load any of the available modules. Once you’ve loaded them, close the script tag out, and use a separate script block for using the API.

JSLoader supports many Javascript Framewroks. The following the an example of how to load a particular Javascript Library on your website / web application.

// Ext.js

// JQuery (no plugins yet…)

// Lightbox (for prototype/scriptaculous)

// Prototype.js
JSLoader.load(“ria”,”prototype”,”1.6.0-rc0″);// Scriptaculous

Requirements: No Requirements
Demo: http://www.jsloader.com/
License: LGPL License

  • Good idea .. but to much work ..

  • Nismoto

    I guess it’s cool. We already do this at work (internally) with all our JS, CSS base templates, application libraries, etc.

    The only problem I see with this is if JSLoader goofs, your WHOLE ENTIRE site could go to crap without the required libraries.

  • Take a look at the comments on the AJaxian post. In an enterprise setting this is designed to be provided in a highly available hosting infrastructure, and also available as a shared mappable filesystem, usually symlinked/virtual-directory-linked into your webroot.

  • Bradley

    I see a problem arising when the domain switches from http:// to https://. The user would receive alerts about the security of the non secured js calls?

  • It doesn’t matter if you deploy this locally, as jsloader.js uses the prefix of the url it was loaded from. But you’re right, if its hosted from a CDN or external host, the protocol will have to be consistent. This could be checked and corrected, if the host offers secure hosting as well.

  • Pingback: JSLoader - libraries on demand - librerias bajo demanda « Edusanver - Blog de Eduardo Sanchez Vera()

Supported By


Web Browsers Icon Set
Food Icon Set
Flat Icon Set

Flat Icon Set

100 icons