Hi All,
If i load all js files at the loading times then application performance makes a huge issue for me because these files takes 15-20 sec for loading. I am thinking, To create my home page in completely as a GWT widget and after loading that home page loading all javascript files through JSNI. I think, i am thinking in right way. But missing one step and don't know where this step is? If anybody have an idea how can i remove that time. Thanks and regards, Sanj. On Dec 11, 9:37 am, Sanj <[EMAIL PROTECTED]> wrote: > Hi All, > > I want to load my allgwt-extjavascripts files after my home page. I > think, there should be one method through JSNI like this :- > > public static native void loadScript() /*-{ > document.write('<script src="js//ext//adapter//yui//yui- > utilities.js" type="text/javascript"></script>'); > document.write('<script src="js//ext//adapter//yui/ext-yui- > adapter.js" type="text/javascript"></script>'); > document.write('<script src="js//ext//ext-all.js" type="text/ > javascript"></script>'); > document.write('<script src="js//DDView.js" type="text/ > javascript"></script>'); > document.write('<script src="js//Multiselect.js" type="text/ > javascript"></script>'); > document.write('<script > src="com.shrisure.SrisureHome.nocache.js" type="text/javascript"></ > script>'); > }-*/; > > Through this method, my alljsfiles loads, but when i am trying to > useGWT-Extwidgets. It throws an exception : > > Caused by: com.google.gwt.core.client.JavaScriptException: > (TypeError): '$wnd.Ext.StatusBar' is null or not an object > number: -2146823281 > description: '$wnd.Ext.StatusBar' is null or not an object > at com.gwtext.client.widgets.Component.checkExtVer(Native Method) > at com.gwtext.client.widgets.Component.<clinit>(Component.java:108) > > Thanks and regards, > > Sanj. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---