Goal:
Load Ext Framework (JS File) only when needed.
Problem:
When loading Ext.JS at a later state Ext.onReady doesn´t fire. I tried working around Ext.onReady, which I didn´t get to work either. I´d be happy for any insight. I´ve also tried various loaders other than jQuery.
The non-working sample:
http://jsfiddle.net/thomasf1/XNJxT/21
Same example, but loading Ext.JS immediately (works):
http://jsfiddle.net/thomasf1/WvcZu/1/
Same example, later load of grid, but immediate include of JS (works):
http://jsfiddle.net/thomasf1/WvcZu/2/
Looks like the Ext loader is not made for that kind of thing. You’re gonna have to tell Ext explicitly that the DOM is already loaded: