Loading Telerik scripts as a single resource

7 posts, 1 answers
  1. Jason Denney
    Jason Denney avatar
    10 posts
    Member since:
    Oct 2009

    Posted 14 Jan 2010 Link to this post

    We have need to use ComboBox, DateTimePicker, Grid, Window, Tooltip, RadFormDecorator, and Scheduler controls all possibly on the same page.

    What is the best way to manage adding the required scripts for these controls to a RadScriptManager to cut down on the total requests hitting the webserver?

    Thanks,
    Jason
  2. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 15 Jan 2010 Link to this post

    Enable the CDN on the script manager and stylesheetmanager :)

    http://blogs.telerik.com/blogs/posts/09-12-08/cdn_support_ndash_radcontrols_for_asp_net_ajax.aspx

    They'll all pull from teleriks content delivery network instead of your webserver...and since they're coming from a different domain you're site files should load faster.  Not only that, but they have a far future expiry date so they'll stay cached which means they wont need to be downloaded every postback....
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jason Denney
    Jason Denney avatar
    10 posts
    Member since:
    Oct 2009

    Posted 18 Jan 2010 Link to this post

    We are doing an intranet deployment so the CDN won't help us.  Also some of these will be running over the Internet through a VPN.  So we are looking at Internet performance for an Intranet deployed application.
  5. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 18 Jan 2010 Link to this post

    Have you tried the EnableScriptCombine and EnableStyleSheetCombine properties to reduce the requests?  Combined with RadCompression, you should be able to get the request size down pretty small.

    Good RadCompression article


  6. Jason Denney
    Jason Denney avatar
    10 posts
    Member since:
    Oct 2009

    Posted 18 Jan 2010 Link to this post

    Ok, I was under the impression that the scripts had to be defined in the RadScriptManager to get them to combine.  So I was running into script errors trying to get the scripts all defined and in the proper order.

    So how does the WebResource_1.asd?d=longid manage the longid for caching?  Is it some hash value for the contents that each unique set of scripts combined can be cached in the browser?
  7. Answer
    Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 18 Jan 2010 Link to this post

    Yeah, the RadScriptManager should auto-combine the scripts required without having to assign them all yourself (link)

    Have a read here for the Webresource caching




  8. Jason Denney
    Jason Denney avatar
    10 posts
    Member since:
    Oct 2009

    Posted 18 Jan 2010 Link to this post

    I think that covers what I was needing to know!  I made the changes and the app is still working as intended.

    Thank you.
    Jason
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017