View Full Version : Ext.loader for third party librarties

26 Oct 2011, 2:33 PM
Hi guys,

Im rebuilding my old application and and would like to use ext loader to "load" my third party libraries ... for example Google Maps ...

mmm I imagine something like that ...

Ext.require('Google.API.Maps', function () {
alert('coool not ?');

browsing some code from "VinylFox" ... he implements a Google Maps Panel and to perform the Google Maps load ... do some tricky code ... creating DOM script on the fly and inject into the code ... but i dont really like that way ... soooo ugly men ...

full source here:

i know the google "loader" way ... they are using defer callback when full module loaded, but will be great a new kind of wrapper for this operations ...

how do you thing ?

27 Oct 2011, 9:44 AM
Any ideas ??

Now, i go with the simple way ... im creating custom classes like maps.js / analytics.js / foo.js and in the class im use simple load mechanism from remote ...

2 Nov 2011, 6:14 PM
I'm on the hunt for something similar, too. Ext.Require with my Ext.Loader path setup (as per this post (http://www.sencha.com/forum/showthread.php?138154-Is-there-something-like-and-Extjs-file-include-or-lazy-loading&p=618357&viewfull=1#post618357)) doesn't seem to find the files. In fact, trying to do this stops the whole application from loading entirely such that not even Firebug shows any activity or errors.