Hi,
I'm using SmartGWT 2.4 LGPL for a free application deployed on GAE.
The problem is that the home page takes a while to load. Of course, after all the components are downloaded to the client, the performance is really good. I've read the forum posts on people complaining about the large SmartGWT Javascript file sizes and the time it takes to download them. Personally, I'm "not" complaining as I'm happy with all the functionality I get in return. I've also read Isomorphic's response to those posts and followed their suggestions such as compression, caching, stripping out unused scripts (using the "SmartGWTNoScript" module approach from the Showcase) etc.
Now what I'm trying to achieve is to reduce the load time for the "home page" of my application. As a first step, I created a simple HTML home page without any SmartGWT components. After the user logs in, the SmartGWT widgets load up, and everything works fine.
The next step is to improve the load time for the home page by deferring the SmartGWT Javascripts download until the user logs in. I really don't mind the time it takes to download the Javascripts after the user logs in. I'm displaying the Showcase-like "Loading ..." message while the SmartGWT components load on the screen.
I also understand that SmartGWT has a OOTB functionality (FileUpload) to achieve something similar, but it's available only in the Pro and higher versions (which I'll be considering in future).
From the investigation I've done so far, I have stumbled upon 2 problems:
1. I found that even for a blank HTML page to display, I need Isc_Core.js and Isc_Databinding.js to be loaded up front. I know the specific order in which these files need to be included, but just for experimentation sake I loaded those two files, and my home page loaded up.
If I don't include Isc_Core.js, I get an error from SmartGwtEntryPoint -> init() call. If I don't include Isc_Databinding.js, I get another error (something related to a reference to RPCManager).
2. Once the user logs in, I'm trying to load all the required Javascripts using an approach somewhat similar to the one mentioned in this thread ( http://forums.smartclient.com/showthread.php?p=37803#post37803 ) and running into some problems with load_skin.js (as mentioned on that thread as well). I need to do more investigation into this.
-------------
At this point, my question is whether my idea of having a plain home page without loading any SmartGWT Javascripts, even viable or am I trying to achieve something which is not possible / not recommended.
If my approach is reasonable, is there something I can do to overcome problem #1?
I'll really appreciate any help on this.
Thanks.
I'm using SmartGWT 2.4 LGPL for a free application deployed on GAE.
The problem is that the home page takes a while to load. Of course, after all the components are downloaded to the client, the performance is really good. I've read the forum posts on people complaining about the large SmartGWT Javascript file sizes and the time it takes to download them. Personally, I'm "not" complaining as I'm happy with all the functionality I get in return. I've also read Isomorphic's response to those posts and followed their suggestions such as compression, caching, stripping out unused scripts (using the "SmartGWTNoScript" module approach from the Showcase) etc.
Now what I'm trying to achieve is to reduce the load time for the "home page" of my application. As a first step, I created a simple HTML home page without any SmartGWT components. After the user logs in, the SmartGWT widgets load up, and everything works fine.
The next step is to improve the load time for the home page by deferring the SmartGWT Javascripts download until the user logs in. I really don't mind the time it takes to download the Javascripts after the user logs in. I'm displaying the Showcase-like "Loading ..." message while the SmartGWT components load on the screen.
I also understand that SmartGWT has a OOTB functionality (FileUpload) to achieve something similar, but it's available only in the Pro and higher versions (which I'll be considering in future).
From the investigation I've done so far, I have stumbled upon 2 problems:
1. I found that even for a blank HTML page to display, I need Isc_Core.js and Isc_Databinding.js to be loaded up front. I know the specific order in which these files need to be included, but just for experimentation sake I loaded those two files, and my home page loaded up.
If I don't include Isc_Core.js, I get an error from SmartGwtEntryPoint -> init() call. If I don't include Isc_Databinding.js, I get another error (something related to a reference to RPCManager).
2. Once the user logs in, I'm trying to load all the required Javascripts using an approach somewhat similar to the one mentioned in this thread ( http://forums.smartclient.com/showthread.php?p=37803#post37803 ) and running into some problems with load_skin.js (as mentioned on that thread as well). I need to do more investigation into this.
-------------
At this point, my question is whether my idea of having a plain home page without loading any SmartGWT Javascripts, even viable or am I trying to achieve something which is not possible / not recommended.
If my approach is reasonable, is there something I can do to overcome problem #1?
I'll really appreciate any help on this.
Thanks.
Comment