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

Forums / Developing with Sitefinity / How to minify Sitefinity Resource scripts

How to minify Sitefinity Resource scripts

7 posts, 0 answered
  1. Nitesh
    Nitesh avatar
    8 posts
    Registered:
    12 Sep 2008
    30 Sep 2009
    Link to this post
    I'm looking to minify as much of the sitefinity js as I can to improve performance and load time of a site I am developing.
    example of one URL
    http://www.mysite.ac.za/WebResource.axd?d=EKod7ndk_fx4JdGirRLpMTKjkH3cjzvzsm3HAnvlhivh5DntarfkTCFxLHebwtPK0&t=633775581580000000

    is there anyway for me to access any of the sitefinity resource scripts and minify them ?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    30 Sep 2009
    Link to this post
    Hi Nitesh,

    You can use RadCompression and page caching. This will optimize the performance of your website. Generally the built in resources are several KB. I hope this helps.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Nitesh
    Nitesh avatar
    8 posts
    Registered:
    12 Sep 2008
    01 Oct 2009
    Link to this post
    Hi Ivan,

    I have added the following to the web.config under the http headers section

    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />

    and i seem to be getting a systemoutofmemory exception at this line.

    What could have gone wrong ?
  4. Nitesh
    Nitesh avatar
    8 posts
    Registered:
    12 Sep 2008
    01 Oct 2009
    Link to this post
    if i remove the 
    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
    i get the same error at a new line
    I have checked up on thess articles

    seems to be my exact error but the fix does not work.
    http://www.sitefinity.com/support/forums/sitefinity-3-x/developing-with-sitefinity/system-outofmemoryexception.aspx
    http://www.telerik.com/community/forums/aspnet-ajax/upload/could-not-load-type-telerik-web-ui-raduploadhttpmodule.aspx
  5. Nitesh
    Nitesh avatar
    8 posts
    Registered:
    12 Sep 2008
    01 Oct 2009
    Link to this post
    hmm ok. an IIS reset seemed to have sorted the error...weird.
  6. Nitesh
    Nitesh avatar
    8 posts
    Registered:
    12 Sep 2008
    01 Oct 2009
    Link to this post
    Hi again,

    I have followed the guide on the following page
    <a href="http://www.telerik.com/help/aspnet-ajax/radcompression.html">RadCompression</a>
    however the scripts seem to be the exact same size as they were before.

    Note : I am currently working on Sitefinity 3.6
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    05 Oct 2009
    Link to this post
    Hi Nitesh,

    RadCompression can be used to compress Telerik.Web.UI resources as Telerik.Web.UI.WebResource.axd. RadCompression can compress AJAXresponses and JSON from web services, page methods and ViewState. Aditionally you could use IIS compression if you have needed permissions over your server.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
7 posts, 0 answered