WebAppers

/ best free open source web resources /

Shopify

JSLoader – Javascript Libraries on Demand

Posted · Category: Framework, LGPL License

jsloader.png

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
JSLoader.load(“ria”,”ext”,”1.1.1″);
JSLoader.load(“ria”,”ext”,”2.0-beta1″);

// JQuery (no plugins yet…)
JSLoader.load(“ria”,”jquery”,”1.2.1″);

// Lightbox (for prototype/scriptaculous)
JSLoader.load(“ria”,”lightbox”,”2.03″);

// Prototype.js
JSLoader.load(“ria”,”prototype”,”1.5.1″);
JSLoader.load(“ria”,”prototype”,”1.6.0-rc0″);// Scriptaculous
JSLoader.load(“ria”,”scriptaculous”,”1.7.1-beta3″);
JSLoader.load(“ria”,”scriptaculous”,”1.8.0-pre1″);

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

6 Comments
  • http://www.axlrod.dk Alex

    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.

  • http://www.jsloader.com Dov Katz

    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?

  • http://www.jsloader.com dov katz

    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

Deals

Web Browsers Icon Set
Food Icon Set
Flat Icon Set

Flat Icon Set

100 icons