How could this slow down the dev process (as in Development Process)? Do you mean slowing down the loading of the pages?
How do you load the js on demand?
In dev time, when you find a bug, you must refresh the page to reload the new js file. If you load all js in start time, then you waste many time in reloading.
An I forgot to mention the fact that dynamically loaded code is almost impossible to debug with Firebug. That may be the main reason to load everything in advance
@fermo111: I'm using "dynamic" code myself during the learning process, and while it might be newbie overkill on my part, I'm able to debug the code. My layout sounds somewhat similar to yours. I have a bunch of left-nav links, and on the click event of a link, I load a new tab in the center region of a BorderLayout. The tab's contents are autoLoad[ed] from an HTML file that contains a content fragment and the content-specific JS. Overkill part: I debug the dynamic code by first making the fragment a complete HTML page with all the required Ext include files. I get the page running by itself, then strip out all the unecessary stuff before using it in my main page.
I'm curious about one of your previous posts in this thread where you mention, "I have a tree on the left region to be used as a menu. The tree is built based on a JSON object. Each node has some configuration info to be used to decide what to do when the user clicks it (actually is a key to index a configuration structure). The normal behaviour in response to a tree click is adding a tab to the center region and loading an HTML fragment into it."
I'm very intersted in how you're using the tree-nav with configuration to load the html fragment and related javascript classes. Do you have a sample of this?
I'm very intersted in how you're using the tree-nav with configuration to load the html fragment and related javascript classes. Do you have a sample of this?
@Ephicient - See if this thread generates some ideas.