PDA

View Full Version : Resources and dependencies



EXTOmega
23 Sep 2010, 10:44 AM
Does ext/sencha offer a tool similar to Mootools' assets? I'd like to be able to include resources only when they are needed, but not load them twice if they are already loaded...

plalx
23 Sep 2010, 10:59 AM
Most of the time, all your classes will be contained in a single minified js file... I don't think there is any built-in way for lazy-loading scripts.

EXTOmega
23 Sep 2010, 7:07 PM
Well, I'm developing a suite of tools and would prefer not to have to include them all... I may be able to manage this from my framework, but was simply interested in seeing if I could have a list of dependency includes at the top of my scripts that are skipped if they've already been fulfilled.

They don't have to be lazy-loaded so much as just me making the calls at the top of each script...

But I guess if Sencha/ext doesn't have it, I'll have to do it from the server side.