I have created a custom widget using the ExtJS framework. In order to load the necessary ext-all.js script asynchronously, I wrote an embedd.js script that also combines other JavaScript files. I've attached a function to be called when Ext.onReady is triggered.
Unfortunately, the function is not getting called when using this method. However, if I manually load the all.js and CSS in the head element of the page, everything works as expected.
Any advice on how to troubleshoot and solve this issue?
You can view the code at the following URLs:
http://38.109.218.86/cw/works.php
http://38.109.218.86/cw/does_not_work.php
(Note that I am attempting to load the ExtJS code asynchronously so that it loads after the rest of the page content).