A tiny javascript loader with cache control.
Simplely add Include.js in your project and load it.
include([
'script1.js',
['other/js/script3.js', function(){ //do something extraordinary when this file is loaded}]
['other/js/script3.js', function(){ //do something extraordinary when this file is loaded}, 'OjectInFile']
], function(){
//do something extraordinary when all files successfuly loaded
});
- Fix : crash if no file callback specified
- Fix : IE8 Crash
- Change : reduce file size
- Change : project is now called Include.js
- Change : reduce file size
- Fix : huge crash in IE8 & before
- Change : Move huge part of code
- Change : file size
- Change : remove unsused vars
- Change : remove return
- Change : perf & compression improvement
- Change : change method to test if object exists
- Change : File callback is called even if file is in cache
- Change : normalize file parameter (name, callback, waited object)
- Change : Speed up the core
- Change : Drop complete callback
- Change : Perf and compression improvement
- Fix : Already loaded script can be reloaded
- Change : rewrite 80% of the code. Now 1kb and 5b with gzip.
- Remove : strict and error parametters
- Fix : File object name not working properply
- Fix : Remove unused var
- Bugfix : main function not runing (oups bug)
- Change : domLoad event checked at first run.
- Bugfix : Require loading directly scripts, not after DOMCOntentLoaded event
- Bugfix : function call before they where created
- Change compression method
- Remove call(this) due to IE bug
-
Added : Third (optional) parametter to files, the object to be loaded
-
Bugfix : Complete not always called, even with all files loaded
-
Bugfix : IE7 crash
-
Bugfix : Infinite callback spam
-
New : supported by Backbone.App
-
Remove : Template support due for non usable content. Use a real javascript templating systeme like Underscore templates.
-
Bugfix : Strict mode can't be change on params
-
Bugfix : Cache not working correctly
-
Bugfix : Load fetch undefined files
-
Change : validate with jslint
-
Change : Error now receive 2 parameters : Event and File
-
Change : Asyc mode is now an option
-
Bugfix : template id not correct (like id="dir/to/the/template)
-
Bugfix : template not loaded correctly
-
Bugfix : strict mode always on
-
Added : you can now load .tpl files
-
Bugfix : crash on IE7
-
Bugfix : can't use multiple time require
-
Bugfix : files loaded 2 times
-
Added : file can now have a specific callback
-
Added : complete, success, error callback
-
Bugfix : ie crash
-
Bugfix : sometime callback lauched even if a file is not loaded
- Bugfix : cache not working properply
- Added : strict mode: file test.js is not like test/test.js
- First release
Created by Jérémy Barbe (c) 2011 include.js is distributed under the MIT license.