RadScriptManager generates huge amount of javascript to download...

4 posts, 1 answers
  1. massimo mannoni
    massimo mannoni avatar
    15 posts
    Member since:
    Oct 2004

    Posted 02 Nov 2010 Link to this post

    Hi,
    We built a website using Telerik Web UI Controls 2009 Q3; using a RadScriptManager we are creating a file to hold all the js combined. The problem is that, althrough using IIS 7 compression, we are getting nearly 800 KB of Javascript. How can we reduce this size??
    Thank you.
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 05 Nov 2010 Link to this post

    Hello massimo mannoni,

    This means that your JavaScript code is huge. Since you are already using compression you can consider reducing the code to only the needed minimum (perhaps not all of the code is needed on each individual page).

    Sincerely yours,
    Simon
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. massimo mannoni
    massimo mannoni avatar
    15 posts
    Member since:
    Oct 2004

    Posted 05 Nov 2010 Link to this post

    Hi
    you misunderstood my question, my fault.
    I would like to know why the file Telerik.Web.UI.WebResource.axd  is generating nearly 800 KB of javascript althrough my declaration of RadScriptManager is very simple, including just 100 KB of my own code.

    Also, my pages are not using too much Telerik's controls. What I use include: RadWindow, RadGrid, RadComboBox (rarely), RadSplitter (rarely), RadEditor (less frequently), RadMenu and RadTabStrip.

    Thank you.
  5. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 11 Nov 2010 Link to this post

    Hello massimo mannoni,

    The size of the JavaScript increases with the number of RadControls on the page. Putting only a RadScriptManager on a page will generate a fairly small size of JavaScript code being loaded. For instance, this demo loads 307.4KB of compressed JS code.

    Unless I am missing something, this is normal.

    All the best,
    Simon
    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
Back to Top