I am trying to clean up an implementaiton of some infragistics controls. For all intents and purposes the site works just fine, and I don't want to overhaul it. It definitely has too many "elements" on it which is causing something like 40 ScriptResources to download. As far as I can tell they aren't caching, and some of the different profiling tools I have been using have been showing some HUGE times. Does anyone have any ideas on how I can try to reduce, or at least cache the, ScriptRefence calls?
First, double-check that your website is not in debug mode. If the <compilation debug="true"/> is set in the web.config, then the browser is instructed to requery the server for every resource on every refresh.
Also, you need to have a look at using the WebScriptManager instead of the asp:ScriptManager. This opens up use of the CDN and also allows you to use the EnableCombining property which allows the scripts to be combined.
Here is the magic link!
http://help.infragistics.com/NetAdvantage/ASPNET/2010.3/CLR4.0/?page=Web_Infragistics_Content_Delivery_Network_CDN.html
If you use the WebScriptManager, then you also have the option of setting the EnableCDN and EnableCombining properties for the entire website using an entry in the web.config.
Just one word of caution on the CDN... I have not been able to use it because I am using some of the legacy controls (the old UltraWebGrid and the old menu control), and some of the images are not on the https:// version of the CDN. But if you are not using legacy controls, then you should be good to go.
Thanks for the reply. I suspect that this solution may fall into the criteria of "old". I inspected the Infragistics.Web.UI namespace in the Infragistics35.Web.v8.3 assembly and I do not see it in there. So I guess that means I am using v 8.3 of the controls. Any thoughts?
By the way, I do have the debug="false" setting correctly set in the web.config. I would also like to post a bit of what I am seeing and why I am going down this route. The solution has 1 web spliter and 4 or 5 tabs wihtin those splits, and then a couple of the tabs have more splitters and tabs in some cases. At first inspection this looks like a heafty amount of controls for a web app, and I do realize that, but I am hoping there is something I can do here to make it better in the short term.
When I load the page in Frefox with Firebug on, looking at the net panel, there are 35 or 40 ScriptManagers kicked offf, each taking in 40,000 - 80,000 or so bytes. The load time on the site is about 5 - 8 seconds depending on the state of the page. Those times are reported by Firebug, and if I do a rough count along with the load, the time for the progress bar to finish is pretty on point So my question is, does this confirm that the scripts aren't caching? Are those sizes really being sent over the wire? And are those times realized because of all of these scripts?
I have drafted my own conclusion on this (hence the post) but I figured I would post it out there to see what your / community thoughts are.
Any info would be helpful.
Thanks!