+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / RadScriptManager?

RadScriptManager?

6 posts, 0 answered
  1. Casey Workman
    Casey Workman avatar
    5 posts
    Registered:
    07 May 2010
    25 Aug 2010
    Link to this post
    Are there any benefits to switching over the ScriptManager to the RadScriptManager?  I've been trying to optimize aspects of our website and one thing I came across was using a different ScriptManager that would combine the scripts in a more efficient manner.  I would say that I have nearly zero experience in ASP.NET so if I'm going in completely the wrong direction, just say so.

    I went into the app_master directory and in the master files replaced all the asp:ScriptManager references to telerik:RadScriptManager.  But either I did something incorrectly or this is not how it is supposed to be implimented, because we saw no increase in page load time nor a decrease in objects loaded.  It is the "objects loaded" that I was most concerned about because the main page of our website is loading 120-130 different objects (images, text, css, scripts...).  I made an assumption that a different ScriptManager would try to combine some of the scripts, was this incorrect?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    25 Aug 2010
    Link to this post
    Hi Casey Workman,

    The performance gain of RadScriptManager should be monitored on a remote server, but not in a local development. This is, because the control optimizes the network latency delay when loading the scripts. RadScriptManager takes to combine the scripts and serve them to the browser. Make sure that EnableScriptCombine Property (Specifies whether or not multiple script references should be combined into a single file ) is set to true.

    You could also take a look at Tips to optimize your website performance.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Casey Workman
    Casey Workman avatar
    5 posts
    Registered:
    07 May 2010
    25 Aug 2010
    Link to this post
    Is there a "simple stupid" way of doing this?  I'm just the server admin guy that is trying to help the site deliver pages faster?  I have a strong background in application development, just none in ASP.NET specifically.  Is this as simple as going in to the app_master directory and finding all the references to the asp:ScriptManager and replacing them with telerik:RadScriptManager? And the EnableScriptCombine property is that part of the telerik:RadScriptManager tag?  For example, is this what I need...

    <telerik:RadScriptManager id="ScriptManager1" runat="server" EnableScriptCombine ="true" ></telerik:RadScriptManager>
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    25 Aug 2010
    Link to this post
    Hi Casey Workman,

    RadScriptManager combines javascript files that are embedded in an assembly. As for the CSS, images etc - you need to use RadStyleSheetManager - it combines the css rules embedded in an assembly.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Casey Workman
    Casey Workman avatar
    5 posts
    Registered:
    07 May 2010
    25 Aug 2010
    Link to this post
    Ok, let me ask that question in a different way.  If I go and edit the Home.Master file and replace the line...

    <asp:ScriptManager id="ScriptManager1" runat="server" ></asp:ScriptManager>

    with...

    <telerik:RadScriptManager id="ScriptManager1" runat=server EnableScriptCombine="true" >
    <Scripts>    
    <asp:ScriptReference Path="http://widgets.twimg.com/j/2/widget.js" />
    <asp:ScriptReference Path="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" />
    <asp:ScriptReference Path="http://blabla.com/easySlider1.5.js" />
    <asp:ScriptReference Path="http://blabla.com/ejb_slide.js" />
    <asp:ScriptReference Path="http://blabla.com/ready.js" />
    <asp:ScriptReference Path="http://blabla.com/home.js" />
    <asp:ScriptReference Path="http://blabla.com/jquery.watermark.js" />
    <asp:ScriptReference Path="http://blabla.com/jquery.tooltip.js" />
    </Scripts>
         </telerik:RadScriptManager>

    Will that gain me anything?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    25 Aug 2010
    Link to this post
    Hi Casey Workman,

    None of the scripts you will add in this way will be combined.RadScriptManager does not combine script references which have only Path set. RadScriptManager can combine only javascript files which are embedded as resources. Embed javascript files as web resources and then combine them with RadScriptManager.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
6 posts, 0 answered