Skip to content

Integralist/XHRl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

XHRl

Description

AJAX based Script Loader (Uses basic Promises implementation).

Reasons for building 'yet another' dynamic script loader:

  • I wanted to learn how to write one myself
  • I wanted a script loader that actually informed the developer of errors! (aka jQuery which cryptically hides errors)
  • I wanted to avoid typical browser sniffs used to keep execution order (e.g. LABjs)
  • I wanted to avoid using hacks (such as...) - used in a few script loaders.

Disclaimer

I wrote this script not to compete with any of the existing script loaders, but to learn something new by the virtue of trying to build one for myself.

Limitations

One limitation of this script loader is that because it relies on XMLHttpRequest all scripts loaded must be hosted on your own domain (i.e. you can't call jQuery from the Google CDN). Now for my use cases this isn't a problem, but for some people this may be a big deal. Take it or leave it.

Other Script Loaders

Here's a list of other script loaders I've looked at...

About

AJAX based Script Loader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published