Top 15 Optimization Tips and Tricks

by Telerik.Sitefinity.DynamicTypes.Model.Authors.Author | May 15, 2007
While we do a lot to help you optimize RadControls in your applications, the Telerik community also does a great job of sharing optimization tips and tricks. One of the best list of optimization tricks ever produced by the community has recently surfaced on the Telerik forums. Some of these ideas are specific to optimizing the RadControls, but many of them are great optimization techniques for ASP.NET in general. So without further ado, here are the "Top 15 Telerik Community Optimization Tips & Tricks" (in no particular order):
  1. Make sure browser caching is enabled
    Many RadControls must load a fair amount of JavaScript to enable all of the client-side goodness that we love in our modern web apps. To make sure this JavaScript is only downloaded once (instead of on every page request), make sure your users enable caching in their browsers.

  2. Move ViewState off of the page
    If you've got a lot of controls on your page and ViewState is enabled, chances are it is adding a lot of weight to the page. If turning ViewState off is not an option, you can greatly reduce the HTML sent to the client by moving ViewState off of the page and into Session (or some other server-side storage mechanism). For a good tutorial on this process, check out the following article: http://www.codeproject.com/aspnet/PersistentStatePage.asp.

  3. Disable control ViewState
    Similar to the previous trick, you can also set "EnableViewState" on each control to False and then manually manage the state on each page postback. Those of us that developed with classic ASP may recall some of the numerous ways this was accomplished before ASP.NET gave us ViewState. Manually managing control state can be time consuming, but it can help you keep your page HTML trim.

  4. Use HTML Compression Tools
    One of the easiest ways to reduce the HTML that you send to the client is to use an HTML compression tool. Compression tools can reduce the size of the HTML sent over the "tubes" for RadControls by up to 75%. Check out this forum thread for more details: http://www.telerik.com/community/forums/thread/b311D-tdkga.aspx.

  5. Background Image Caching in IE
    By default, IE will not cache background images. If you use any CSS in your application (which you do if you use RadControls with skins), this can lead to a lot of wasted downloads in IE. Fortunately, there is a way to "trick" IE into caching background images. Check out the details here: http://www.telerik.com/community/forums/thread/b311D-teckk.aspx.

  6. Read the Documentation
    This may sound like a worthless trick, but don't discount it until you've given it a try. Almost all RadControls have a dedicated "Speed Optimization" topic in their documentation that contains tips specific to each RadControl. Visit the RadControls documentation to find these tips. (Here is a link to RadGrid's optimization documentation to get you started.)

  7. Use Http Analysis Tools
    How can you solve a problem without seeing it first? Free tools like Fiddler (for IE) and FireBug (for FireFox) help you peel back the curtain on your page's performance and quickly find bottlenecks in your page HTML that need to be optimized.

  8. Use 3rd Party Optimization Tools
    Still looking for optimization techniques that don't require much work? There are several tools, like port80 and cacheright, that help automate the process of optimizing your page. These tools can help eliminate many of the caching problems that you'd otherwise have to deal with manually.

  9. Use External Resources instead of EmbeddedResources
    Embedded resources are generally very good and very helpful. They allow you do just deploy a control assembly and not deal with any additional files. When a page uses EmbeddedResources, though, resources are pulled from an assembly using a handler and querystring value (like WebResource.axd?d=HTLSHE...). Unfortunately, these long querystrings are adding bulk to the HTML you are sending to the client. One Telerik community member found that setting "UseEmbeddedResources" to False (and using external resources in the RadControls folder instead) reduced page size from 80 kB to about 50 kB simply due to the shorter resource paths. Your mileage may vary depending on the RadControls you're using.

  10. Keep Control IDs Short
    Whenever you have deeply nested controls, the ID of the parent control is always appended to child control IDs (if the parents implement INamingContainer). If you have long control IDs, you can cause a fair amount of extra HTML to be rendered to the page. For example, if we have a RadTreeView with ID "RadTreeView1" in ContentPlaceHolder with ID "ContentPlaceHolder1" (in a MasterPage), the resulting client ID of the TreeView is "ctl00_ContentPlaceHolder1_RadTreeView1". If we had used shorter server IDs, we could have trimmed this output to "ctl00_cph1_rtv1" and reduced the overall HTML sent to our page. This trick should always be weighed against making your code difficult to maintain due to cryptic control IDs.

  11. Test Sites in IIS (not Cassini)
    The web server built-in to Visual Studio is very convenient for development, but it is not a good place to test your site's performance. Cassini does not do any caching of web resources and it is generally slower than IIS. You should always test your site in IIS before deploying it to a PROD environment to make sure you know how it will really perform.

  12. Use RamDisks in your Infrastructure
    If you have control over your servers and are willing to make some hardware changes to improve performance, RamDisks may be worth checking out. By using RamDisks instead of traditional HDD for things like tempdb storage in SQL Server or HTTP decompression scratch storage, you can (supposedly) deliver performance 50x's normal hard drives. Check out this resource for more details: http://www.superspeed.com/ramdisk.php.

  13. Use Incremental Page Fetch
    It sounds more exciting than it is, but by using RadAjax and some crafty coding you can help your pages load faster. In essence, you delay loading all of the user controls needed by your page so that the page will initially load faster and then load the controls with RadAjax. For details on this process, check out this link: http://www.telerik.com/community/forums/thread/b311D-tkkce.aspx.

  14. Remove Whitespace Characters
    You may not realize it, but all of the whitespace characters our page contains to make it easy to read add HTML bulk. We definitely don't want to get rid of all of our page formatting at design time, though, so there are modules like this that remove the whitespace at runtime. By tapping-in to the page's render method, you can easily search for whitespace characters in your page and remove them to keep your pages trim. Warning: this method may cause problems if you use it with the new RadControls "Prometheus".

  15. Don't use Label when Literal works
    Perhaps one of the most overlooked ASP controls is the "asp:literal" control. There are many times when ASP.NET developers use Label or HyperLink when Literal would do the job and save HTML bulk. For example, if you use a Label like this:
    <asp:label runat="server" Text="Some test text" ID="Label1" />
    will render:
    <span id="ctl00_Label1">Some test text<span>

    If you use a Literal like this:
    <asp:literal runat="server" Text="Some test text" />
    will render:
    Some test text

    The literal will not render any unnecessary span tags and help you reduce HTML sent to the client.
So there you go. The top 15 optimization tips and tricks as suggested by the Telerik community. Special credit goes to Johan, andyk, Martin Bischoff, and Mike for collecting most of these ideas in the forums. Feel free to add other optimization tricks in the comments if you think I've missed something important in this list.


Leave a comment
  1. David Taylor | Nov 21, 2018
    I am David Taylor. I am an academic content writer and editor, associated with GotoAssignmentHelp.com for a decade. Java Programming Assignment Help, PHP Programming Assignment Help,Javascript Programming Assignment Help,C++ Programming Assignment Help,GotoAssignmentHelp.com is leading plagiarism free assignment writing help in Australia. We provide customized assignment help service. C# Programming Assignment Help,write my management assignment, Online Psychology Assignment Help, hr management assignment help, online assignments help We are leading the market for more than a decade now and have acquired the name of being the best academic help service for our comprehensive services at pocket-friendly ratesprogramming language assignment expert homework help online, research paper help online
  2. Mandik | Nov 21, 2018
    If you are the big fans of the films and the related aspects of them, you will want to follow the Annual Golden Globe Awards that will happen ...
  3. Stat | Nov 21, 2018
  4. https://statanalytica.com/data-analysis-assignment-help.php | Nov 21, 2018
  5. Stat | Nov 21, 2018
  6. Stat | Nov 21, 2018
    Angular has changed the programing world completely with the help of you advice now we can make your website faster than ever. <a href="https://statanalytica.com/data-analysis-assignment-help.php">Data analysis assignment help</a>
  7. Stat Analytica | Nov 21, 2018
    Angular has changed the programing world completely with the help of you advice now we can make your website faster than ever. <ahref="https://statanalytica.com/data-analysis-assignment-help.php">Data analysis assignment help</a>
  8. Stat Analytica | Nov 21, 2018
    Angular has changed the programing world completely with the help of you advice now we can make your website faster than ever. <ahref="Data analysis assignment help</a>
  9. Stat Analytica | Nov 21, 2018
    Angular has changed the programing world completely with the help of you advice now we can make your website faster than ever. <a hfer="https://statanalytica.com/data-analysis-assignment-help.php"Data analysis assignment help</a>
  10. Stat Analytica | Nov 21, 2018
    Angular has changed the programing world completely with the help of you advice now we can make your website faster than ever. <a hfer="https://statanalytica.com/data-analysis-assignment-help.php">Data analysis assignment help</a>
  11. asd | Nov 20, 2018
    I just extra this particular give food to to my book marks. I must say, I truly take pleasure in reading the weblogs. Continue the good work! leovegas
  12. asd | Nov 20, 2018
    Oh my goodness! an incredible article dude. Thank you Nonetheless I am experiencing problem with ur rss . Don know why Unable to subscribe to it. Is there anybody getting an identical rss drawback? Anybody who is aware of kindly respond. Thnkx leovegas
  13. ad | Nov 20, 2018
    I think this web site has got very superb indited written content articles. 24hbet
  14. asd | Nov 20, 2018
    i like to search the internet for new kitchen gadgets to add to my kitchen.. casinoeuro
  15. asd | Nov 20, 2018
    My wife was compassionate but I felt compelled to take action on my erectile dysfunction. I was able to  buy tadalafil cheap and saved about eighty percent. casinoeuro
  16. asd | Nov 20, 2018
    well, if you really want to be healthy, i believe that veggan foods are the best ; casino euro
  17. ads | Nov 20, 2018
    I randomly browse blogs on the web, and that i discover your article to be very informational. I even have already bookmark it on my browser, so as that I can view your blog publish another time later. Additionally, i am wondering whether or not your weblog is open for link exchange, as i really wish to trade links with you. I do not normally do that, but I hope that we will have a mutual hyperlink exchange. Let me understand and have an ideal day! trada casino
  18. asd | Nov 20, 2018
    Hello there, have you by chance considered to publish regarding Nintendo or PS handheld? trada casino
  19. asd | Nov 20, 2018
    I simply needed to say thanks yet again. I am not sure what I might have achieved without the type of information provided by you on such a problem. It previously was the scary circumstance in my position, nevertheless spending time with the expert technique you managed that took me to weep for happiness. I will be grateful for this help and then hope you recognize what a powerful job you are getting into training the rest using your blog. I am sure you haven’t encountered any of us. trada casino
  20. Isha Sharma | Nov 20, 2018

    Professional website development company in gurgaon providing Creative and Responsive Website Designing company all India

    Website development company in Gurgaon

  21. asd | Nov 20, 2018
    Indian Microwave Recipes at my site feel free to check it out. film star hub
  22. Alhol Arun | Nov 20, 2018
    Read our reviews of the best hammer drill first. ... A sturdy well-made drill, it has a variable speed selector, a reversing switch for removing bits or when the drill ...Best Hammer Drill Bits
  23. sad | Nov 20, 2018
    It’s an extremely remarkable effective useful resource that you’re offering and you offer that aside cost-free!! My partner and i that can compare with finding internet sites in which observe the specific house worth offering you a great studying resource with regard to absolutely no price. All of us truly a lot cherished analyzing this short article. Love! αποφραξεις αγια παρασκευη
  24. Jose Friel | Nov 20, 2018
    Men will be disillusioned when they endeavor to use ladies' shavers because of their moderate engines, and ladies must not use men's shaver because their better hair may will in general dull the blades and stop up their instruments.

    best head shaver for men

  25. Group manicures in Manhattan | Nov 20, 2018
    A few of the pendant watches are constructed with real gold and silver, rhinestone or gemstones. Group manicures in Manhattan
  26. asd | Nov 20, 2018
    While I enjoy the actual analysis part of your smart phone market posts, you often sound like an Embittered Old Fart Apple haterboy. Temple nile
  27. asd | Nov 20, 2018
    I do not know if it’s just me or if everybody else experiencing issues with your blog. It appears as though some of the text on your content are running off the screen. Can someone else please provide feedback and let me know if this is happening to them as well? This might be a issue with my web browser because I’ve had this happen before. Thanks spin station
  28. asd | Nov 20, 2018
    So I actually do not really understand why you see details the way you do, but it certainly added a brand new side to how I thought of this before. Spinland
  29. asd | Nov 20, 2018
    We still cannot quite believe Possible come to be those types of staring at the important points located on your blog post. His dad and so i are sincerely thankful with regards to your generosity and then for giving me possibility pursue our chosen profession path. Wanted info I purchased belonging to the web-site. spinrider
  30. asd | Nov 20, 2018
    News on why News became valuable to most of people. miami dice
  31. asd | Nov 20, 2018
    Rachel Weisz have that mysterious look and she is very appealing to most men and women,, grand ivy
  32. asd | Nov 20, 2018
    I found this blog site a couple of days ago and look through a lot of of the articles, nevertheless i did not bear in mind to bookmark the web site so I’ve been seeking Couple of weeks seeking for it. Right now I finally found it once more, and this time I ensured to include a bookmark! dream vegas
  33. seo | Nov 19, 2018
    Brilliant showed data. I thank you about that. Undoubtedly it will be extremely valuable for my future ventures. Might want to see some different posts on the same subject!  qrius.com
  34. Brother Printer Support USA | Nov 19, 2018
    Call +1-888-621-0339 for Brother Printer Support. Our Brother Printer support phone number is available 24*7 for our callers at Dial Printer Support. Brother Printer  Support Brother Printer Support Number Brother Printer Support Phone Number Brother Printer  Support USA Brother Printer Support Toll-free number
  35. asd | Nov 19, 2018
    Great tips! I will try to use them. A hard-hitting post. chat rooms online
  36. ASD | Nov 19, 2018
    You actually make it appear really easy with your presentation but I find this topic to be really something which I believe I might never understand. It seems too complicated and very broad for me. I’m taking a look forward for your next post, I will try to get the cling of it! Vape Juice
  37. ASD | Nov 19, 2018
    I am glad to be  one of many  visitors   on this  outstanding  web site  (:, thanks  for posting . suomikasino
  38. jess | Nov 19, 2018

    We are directly integrated with banks and merchant services, allowing us to track down a dispute and take a pro-active approach to solving a problem before it turns into a chargeback. By taking prompt action on notifications (also known as media requests or requests for information) and making sure the banks have received our communications, we can help you avoid chargebacks.chargeback management


    McAfee is a well-known brand and provides security tools to protect your personal data and cloud files on Windows PC, MAC, and Mobile devices. McAfee furnishes a wide range of various antivirus and security tools such as McAfee LiveSafe, McAfee Total Protection, McAfee All Access, McAfee Antivirus Plus, McAfee Mobile Security, McAfee Virus Scan and McAfee Internet Security. To install and activate McAfee product on your, you must have a product key or activation code. McAfee product key or activation code comes along with your McAfee product and also you can purchase a product key from the retail store or a retail website.mcafee.com/activate

    Webroot has a wide range of product such Spy Sweeper, Windows Washer, Webroot Internet Security Essential, and Webroot SecureAnywhere etc. The first commercial product which was launched by the Webroot is Webroot Windows Washer, which is a trace removal agent. Webroot Spy Sweeper has been designed to remove and block the spyware from your system. With the Webroot Spy Sweeper’s enterprise version Webroot entered into the enterprise market. webroot.com/safe


    The Webroot offers simple, affordable yet brilliant technology to protect your device and data. Install Webroot.com/safe on your multiple devices including PC, Mac, and mobile device with one subscription. Most of the Webroot Products are available at an affordable price. However, you can try the 30 days free trial of every product and purchase them when you are satisfied with the performance.webroot.com/safe


    The Garmin Express is available at Garmin.com/express to download for free.Furthermore, this application can help your product registration, device updates, syncing fitness data over multiple devices. If you are a Smartphone user then do not worry there is a version for mobile as well, Garmin Connect. Also, the Garmin Device represents the technological advancement in the today’s era. But there are many users who face trouble while using these products due to lack of technical knowledge.garmin.com/express


    You need to make sure that your system meets the requirements, before starting the download or installation process. In case you want to know the system requirements to download the product then you may visit the official website of the Garmin. You only need to visit garmin.com/express and then click on the System Requirements option below the download option. Also, for more details, you may directly contact Garmin Support using a toll-free number.                                 garmin.com/express


    Bitdefender is a popular name in the cybersecurity market. Not only that, but Bitdefender also offers a variety of security application for both home and business use. With Bitdefender, you can access a variety of security application and services at one place that also offers multiple uses such as Complete Device Protection, Mac Protection, PC Protection, Android Protection for Personal Use. Also, Endpoint Protection, Advanced Threat Protection, DataCenter security for business use. As you can see there is a number of services offered by the Bitdefender and sometimes it gets difficult to manage all of these services at the same time. In such time, a user can get the service of the Bitdefender Login. It is an online platform that helps the user to manage, sync, update, and activate the Bitdefender Subscription at one place.Bitdefender Central

  39. MyDrive Connect | Nov 19, 2018
    MyDrive Connect - TomTom offers various GPS and navigation devices and services to the user with various demands. Along with that, you can also get the devices for the fitness purpose and save your fitness data and compare it. TomTom is now becoming popular as many people are trying and purchasing their products and services. In order to help the user to manage the devices at one place, the TomTom offers a free computer application, MyDrive Connect.MyDrive Connect
  40. roadrunner Email | Nov 19, 2018
    Roadrunner Email – Security is very important while using any email account. Similarly, when you are using the Roadrunner email, some security is already provided by them. However, there is also an option to add more security to the Roadrunner email account. Roadrunner Email
  41. garmin.com/express | Nov 19, 2018
    Garmin Express is an application designed to manage Garmin devices. It is used for device registration, map updates and software updates, syncing Fitness ...garmin.com/express
  42. Alisah King | Nov 19, 2018
    Being in this discussion , would surly help me to increase my knowledge. As a Dissertation Writer, I need to gather lots of information that can be used in research work. When I provide Online Dissertation Help to students, such information sometimes comes into use in dissertation methodology. Thanks for sharing..!  
  43. Mike Rock | Nov 19, 2018
  44. aahil aarya | Nov 19, 2018

    I think this is one of the best blog for me because it really is helpful for me. Thanks for sharing this valuable information for free.  

     packers and movers in Patna

  45. asd | Nov 19, 2018
    general blogging is great because you can cover a lot of topics in just a single blog** best touchless faucet
  46. madan mohan | Nov 19, 2018

    I wanna say thank you for providing very informative things. I feel too good to read it. Such a Great article, Good work and keep sharing.

    smo company in patna

  47. contract warehousing | Nov 19, 2018
    very nice publish, i definitely love this web site, keep on it contract warehousing
  48. Chicago Tax Attorney | Nov 19, 2018
    Whoa! This blog looks just like my old one! It’s on a totally different subject but it has pretty much the same layout and design. Outstanding choice of colors! Chicago Tax Attorney
  49. Kristy Murphy | Nov 19, 2018

    I read a lot of blog posts and I never heard of a topic like this. I love this topic. Very ingenious. 

    Assignment Help

  50. David Munoz | Nov 19, 2018
    Do you have enough space inside your home for a full-sized table? Would you be able to have it set up in your amusement room, your home office or the loft? Else, you can exploit the outside space by getting an outdoor table tennis setup ..... Best indoor ping pong table

    Leave a comment