Sequential actions/files loading on jQuery
Clone or download
Latest commit 5cff9ca Aug 27, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Small improvement, documentation updates Sep 4, 2012
README.md Updated README Aug 27, 2013
generate-documentation.sh Added documentation Aug 19, 2012
jquery-seq.js Fixed bug, updated README Aug 27, 2013

README.md

jQuery-seq

About

jQuery-seq is a set of functions to do some tasks sequentially. It uses jQuery deferred object. You can either execute some functions sequentially with sequentialExecute or use ready functions to load scripts or stylesheets or other files (flash for example) one after another.

Most useful functions are withScripts and withStyles

Usage

Use cases are

withScripts('/js/some-script.js', '/js/some-other-script.js', function(){
  alert('all scripts loaded');
});
withStyles('/css/some-style.css', '/js/some-other-style.css', function(){
  alert('all css files are loaded and appended to head');
});

Documentation

Documentation also available. Just clone repository and look at doc/index.html