iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
The javascript footprint of the grid - particularly when combined with other tools, such as the webcombo, webinput, and webdesktop - is quite large and can take some time to download for lower bandwidth users.
Is there some way to decrease this footprint or to minimize the impact for slower connections?
Dan, are you running WebUI Studio 2009?
There are two ways you can reduce the footprint for slower connections:
<add key="ISNet.WebUI.ISRes_Compressed" value="true" />
With the simple line above, the scripts will be automatically compressed using gzip or deflate encoding depending on the browser capability (most browsers today accept both gzip and deflate encoding).With compression enabled, the overall footprint size for scripts can be reduced by 80%. This will dramatically improve the application speed especially in slower connections.
Hope this helps. Let me know if the solutions above worked for you.
I was glad to hear about the new compression feature as IIS compression is not an option for us. Based on your recomendation, we purchased the 2009 ASP.NET Suite.
My problem is:
1. I can find absolutely no documentation on this feature. In fact, we found very little documentation at all about the web.config options that are available and how they interact. For example, can this compression setting be used in conjunction with XMLCompression or the CSS options? Are these cumulative or competitive? What affect do they have on the CPU and memory requirements for the server or client system?
2. The "Deployment Manager" tool doesn't have an option for this new compression feature. In fact, this tool itself is also very poorly documented.
3. Putting the line you suggested into the most logical location in the web.config file did not result in any change in the overal footprint size.
I tested this with the latest version of Safari (which is documented to support both kinds of compression) and looked at the Web Inspector tool for a page that has a grid, combo, web dialog box, and web imput. Between the JavaScript and the object definitions in HTML the page took up nearly 1.5 MB!! I compared with and without this setting and compared the 2008 version of the grid to 2009. Not only was there no improvement, but the footprint size actually went up.
I need to see a sample of how to implement this new compression feature.
What is the expected javascript footprint for a page that uses all four of these features: grid, combo, web dialog box, and web imput?
We purchased the latest version of the grid specifically because of this new compression feature and we need to have it work for us.
Dan, thanks for your response.
Here are the answers to your questions:
What is the expected javascript footprint for a page that uses all four of these features: grid, combo, web dialog box, and web imput?We purchased the latest version of the grid specifically because of this new compression feature and we need to have it work for us.
A note regarding the compression level, the SmartWebResources compression feature used medium compression level to have a good balance between output and performance.
In most cases (and per my inspection on each compressed script), the average compression is at 75% level. That means, if the total size of uncompressed scripts is 1.5MB, then you can expect the total size after compression to be approximately 375 - 400 KB.
Please let me know how you find the results at your end.
Here is what we found using IE 8:
1. Setting the value of ISRes_Compressed to true or false didn't matter. If the line was in the web.config file then the compression was on.
2. It wasn't clear from the initial description, but combining IIS compression and ISRes_Commpressed produces no benefits in terms of the JavaScript. Although, IIS dynamic compression can shrink the size of the ASPX page.
3. There are a number of cases where the same JavaScript is downloaded twice. It looks like this is because the capitalization of the file names changed.
Is there any way to pre-load the JavaScript or somehow keep it (semi) perminantly cached on the client? Because of the way our application works we can't just set the cache expiration policy that way for the entire ASPX page.
Dan, thanks for sharing your results. It's great to see the compression worked at 72% level for you.
Several points for your questions:
Another interesting point regarding Javascript caching: SmartWebResources will automatically cache the javascript and other resources in the client browsers when your application is running in the production server (eg, compilation debug="false" in web.config). So the answer is yes, and it's automatic, so there're no efforts needed at your end for the caching.
The built-in cache setting sets the expiration to occur when the files are modified since last access (based on modified date of each resource).
Let me know if you have other questions. Thanks!
The development machine running this example has the older version installed, but the only files in the bin folder (these are not referenced rather they are physically located in the bin folder) are the 2009 versions. The CommonLibrary folder is not included and is not aliased. the web.config file has not reference to the older versions.
The duplicate JavaScript entries were:
ISRes.axd?F/CoreValidator.js/305000701
ISRes.axd?F/corevalidator.js/305000701
and
ISRes.axd?F/CultureInfo.js/305000701
ISRes.axd?F/cultureinfo.js/305000701
Note that they have the same number attached!
Hi Dan,
Thanks for following up on this duplicate issue.
We've found the issue which appears to be in WebInput, and has been resolved. The fix will be available in upcoming service pack.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname