This is a migrated thread and some comments may be shown as answers.

[Solved] RadScriptManager query

1 Answer 150 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew Jones
Top achievements
Rank 1
Andrew Jones asked on 22 Apr 2008, 02:10 PM
Hiya

I've been looking at the RadScriptManager control and the way it combines javascript into a single file. Im concerned about the way it effects browser caching but am not sure im understanding it correctly.

For example if I have:
    page1.aspx
        -RadGrid
        -RadCalendar
        -RadEditor
     page2.aspx
         -RadCalendar
    page3.aspx
        -RadGrid

Am i correct in thinking that every page will generate a unique .axd file based on the controls within that page (looking at my IE cache this seems to be the case) and therefore the browser will never (or rarely) have a cached copy of the script when it hits a page for the first time.

Without RadScriptManager, once a user has visited page1.aspx they will have all the scripts they need in browser cache for page2 and page3.

I hope that makes sense. Have I understood this correctly and if so will this not impact performance for those with slow connections as it downloads a script file for every single page they hit?

Many thanks

Andrew Jones

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 23 Apr 2008, 10:49 AM
Hi Andrew,

Indeed, you are right. There are various pros and cons of using combined scripts. When using pages with different sets of controls, not using RadScriptManager would result in caching the specific control script files, thus saving download time between the different pages. In this case the page load will still be quicker for visitors who have disabled the browser cache. On the other hand, if your application has different pages with the same control set, the end users will benefit of RadScriptManager usage.

In one word, using script combination is scenario-specific and it is up to the developer to decide if to use it or not.

Cheers,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Andrew Jones
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or