-
25 Aug 2010 8:21 PM #1
Unanswered: Ext.Loader, examples?
Unanswered: Ext.Loader, examples?
looks like Ext.Loader is added into ExtCore when ext 3.3.0 beta is out, but nothing mentioned about this new feature? I need several examples to get familiar with this function.
-
26 Aug 2010 6:25 AM #2
Ext.Loader..
Ext.Loader..
It seems a beta feature for now.
I use Lab.js. (nonblocking JavaScript loading library)
http://labjs.com/documentation.php
try this!
Examples:
I Hope this helps.PHP Code://import script
<script type="text/javascript" src="js/path/LAB.js"></script>
//1:
$LAB.script("js/path/1.js").wait(this.yourcallback.createDelegate(this));
//2:
$LAB.setOptions({AlwaysPreserveOrder:true,BasePath:"js/path/"})
.script("1.js","2.js","3.js") //parallel loading, not preserve order
.script("4.js") //wait for 1,2,3 loading completion then load 4
.script("5.js") //wait for 1,2,3.js 4.js completion thsn load 5
.script("6.js","7.js")//wait .. completion and parallel loading of 6,7
.wait(yourcallback);
...
-
26 Aug 2010 8:58 AM #3
@44gatti
thanks, LABjs is so cool, I will look into it
-
27 Aug 2010 10:39 AM #4
thanks to Kyle Simpson (author) and Nikolas Zakas (YUI) books ..

-
2 Sep 2010 12:39 AM #5
-
3 Sep 2010 4:06 AM #6
Only a simple note, in many cases debugging dinamically loaded files with Lab.js it's not the same as debugging static loaded files.
I suggest to wrap the loading statements in a try /catch block to catch exceptions.
-
6 Sep 2010 2:14 AM #7
-
7 Sep 2010 5:41 AM #8
Load CSS and JS with Dominoes
Load CSS and JS with Dominoes
Kyle Simpson (alias Getify) suggests me Dominoes for load JS and CSS.
http://code.google.com/p/javascript-dominoes/
It has been specifically tested with:
- Internet Explorer 8
- Firefox 3.5
- Safari 4
- Chrome 3
- Opera 9
Other libraries-->
http://github.com/rgrove/lazyload/
http://developer.yahoo.com/yui/get/
-
9 Sep 2010 7:42 AM #9
cool, thanks for your links, you always give us good resources

Similar Threads
-
Ext.Loader
By faktum in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 17 Aug 2010, 1:37 AM -
[CLOSED] Ext.Loader (3.2.1)
By bmatasar in forum Ext 3.x: BugsReplies: 1Last Post: 4 Jun 2010, 9:55 AM


Reply With Quote