User Profile & Activity

Dan Ransom Member
Page
of 2
Posted: August 21, 2009 2:47 PM

That makes sense. Can I add a feature request?

We don't necessarily want to turn on dynamic compression because of the added CPU load. Can we get an option to have the datastream compressed via the Instersoft controls rather than setting this system-wide in IIS? This could also help when running on IIS 6.

Posted: August 21, 2009 2:07 PM

Thanks. The SetImage method didn't work for me, but the CellElement version did. Note: the  plus signs ( ) are missing from the for loop in the code block and this caused an infinate JavaScript loop.

Posted: August 21, 2009 12:30 AM

I like the alert and I want to keep the alert. Is there a way to change the text of the alert?

Posted: August 20, 2009 12:42 PM

Is there any way to change the text of this alert?

Posted: August 20, 2009 12:40 PM

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!

Posted: August 20, 2009 12:35 PM

Yes, I used IIS 7. Yes, I have both dynamic and static compression enabled.

As I stated, you can see this behavior in your own sample pages.

Steps to reproduce:

1. Open up this page: Client Binding Sample

2. Start up an http inspector such as HttpWatch or Fiddler

3. Press the refresh button in the grid.

You'll see the JSON data is not compressed.  If you take the same page and remove the "ClientBinding" setting the data sent is XML and it is compressed, actually to a smaller size!

Posted: August 19, 2009 3:25 PM

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.

Bytes
Part No Compression ISRes_
Compressed w/o IIS Compression
ISRes_
Compressed w/ IIS Static Compression
ISRes_
Compressed w/ IIS Static and Dynamic Compression
ISRes.axd?C/DD4_Active.gif 190 190 190 190
ISRes.axd?C/DD4_Over.gif 294 294 294 294
ISRes.axd?C/WebCombo.js/407200214 119,810 34,160 34,160 34,160
ISRes.axd?D/WebAnimation.js/252007 18,956 5,073 5,073 5,073
ISRes.axd?D/WebAnimation.js/307200302 18,956 5,073 5,073 5,073
ISRes.axd?D/WebButton.js/307200 15,913 5,012 5,012 5,012
ISRes.axd?D/WebButton.js/307200302 15,913 5,012 5,012 5,012
ISRes.axd?D/WebCallOut.js/307200302 35,430 9,298 9,298 9,298
ISRes.axd?D/WebDesktop_Runtime.js/307200302 31,385 8,491 8,491 8,491
ISRes.axd?D/WebDesktopManager.js/307200302 111,396 29,785 29,785 29,785
ISRes.axd?D/WebDialogBox.js/307200302 29,068 8,963 8,963 8,963
ISRes.axd?D/WebMenu.js/252007 72,070 19,988 19,988 19,988
ISRes.axd?F/Core_DragDrop.js/305000701 23,903 6,899 6,899 6,899
ISRes.axd?F/corevalidator.js/305000701 65,113 16,990 16,990 16,990
ISRes.axd?F/CoreValidator.js/305000701 65,113 16,990 16,990 16,990
ISRes.axd?F/cultureinfo.js/305000701 22,267 5,219 5,219 5,219
ISRes.axd?F/CultureInfo.js/305000701 22,267 5,219 5,219 5,219
ISRes.axd?F/ISCore.js/305000701 121,561 34,666 34,666 34,666
ISRes.axd?F/ISCore_UI.js/305000701 2,343 1,207 1,207 1,207
ISRes.axd?F/XmlCompressor.js/305000701 14,568 4,776 4,776 4,776
ISRes.axd?G/CalendarDD.gif 616 616 616 616
ISRes.axd?G/ISMenu.css/707200303 988 404 404 404
ISRes.axd?G/Localization.default.xml 15,233 4,461 4,461 4,461
ISRes.axd?G/WebGrid_Calendar.js/707200303 9,001 3,234 3,234 3,234
ISRes.axd?G/WebGrid_Charting.js/707200303 20,108 5,897 5,897 5,897
ISRes.axd?G/WebGrid_ChartInteractiveUI.js/707200303 112,791 26,122 26,122 26,122
ISRes.axd?G/WebGrid_Context.js/707200303 45,471 14,065 14,065 14,065
ISRes.axd?G/WebGrid_Core.js/707200303 166,426 47,677 47,677 47,677
ISRes.axd?G/WebGrid_Core2.js/707200303 11,901 3,456 3,456 3,456
ISRes.axd?G/WebGrid_Edit.js/707200303 85,689 25,738 25,738 25,738
ISRes.axd?G/WebGrid_Events.js/707200303 54,433 13,367 13,367 13,367
ISRes.axd?G/WebGrid_RTSys.js/707200303 1,047 736 735 735
ISRes.axd?G/WebGrid_UI.js/707200303 130,055 38,834 38,834 38,834
ISRes.axd?G/wg_filter.gif 288 288 288 288
ISRes.axd?G/wg5_more.gif 210 210 210 210
ISRes.axd?G/wg5_progress_std.gif 1,765 1,765 1,765 1,765
ISRes.axd?G/wg5_sep_std.gif 103 103 103 103
ISRes.axd?G/wg5_statusbk_std.gif 197 197 197 197
ISRes.axd?G/wg6_chartview.gif 626 626 626 626
ISRes.axd?G/wg6_gridview.gif 367 367 367 367
ISRes.axd?I/clientbehaviour.js/307200213 24,669 6,735 6,735 6,735
ISRes.axd?I/MaskValidator.js/307200213 69,745 17,673 17,673 17,673
ISRes.axd?I/webinput.js/307200213 54,337 13,773 13,773 13,773
ISRes.axd?I/webinputeditor.js/307200213 83,592 21,049 21,049 21,049
total 1,698,043 472,557 472,556 472,556
total (JavaScript only) 1,675,297 461,177 461,176 461,176
Compression % 72.17%
Compression % (JavaScript only) 72.47%

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.

Posted: August 19, 2009 12:18 AM

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.

All times are GMT -5. The time now is 7:50 PM.
Previous Next