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. www.office.com/setup | Feb 19, 2019

    ravishing content!!


  2. Elephone | Feb 19, 2019

    i found it so amazing https://firmwarefeeds.com

  3. siena william | Feb 19, 2019
    This is the main reason why most students search for online assignmenthelp Australia over the internet and choose only the most proficient and trusted academic writing experts. Management assignment help Australia in understanding how legal theories and concepts can be enforced in the real world. We have some of the best managementassignment help who have intensive knowledge of wide range of topics as discussed above and beyond. If I have to get my marketing assignment done, I will get it done by marketing assignment help experts of this company because these experts are Ph.D. Degree holders who are aware of management models and theories. However, the most feasible way is to grab managementcase study assignment help from the experts who could eventually help you with the information and a pertaining study.
  4. iPhone Application Development | Feb 19, 2019
    Thanks for sharing this valuable information. I also have a reference for iPhone app development company which provides services like iPhone application development for various categories such as education, finance, health & fitness, baking etc.
  5. BitDefender Login | Feb 19, 2019
    BitDefender Login - Now Login to Your Bitdefender Central Account at central.bitdefender.com and Manage Bitdefender Subscriptions, Stay up-to-date Here.BitDefender Login
  6. tom tom MyDrive Connect | Feb 19, 2019
    TomTom MyDrive Connect is an application available for Windows and Mac. MyDrive Connect is used to update the TomTom devices and application. Furthermore, you can use this application to manage the TomTom devices as well.tom tom MyDrive Connect
  7. Roadrunner webmail | Feb 19, 2019
    Roadrunner Webmail not working Mac issues With each update of the operating the system, the email services such as roadrunner email also update their software. The Mac has recently updated their operating system and so does the roadrunner.  Roadrunner webmail
  8. Garmin express | Feb 19, 2019
    Garmin express-You can download Garmin.com/express from the website for free. Using this application, a user can update maps, update software, manage favorites, register a device, and much more.garmin express
  9. norton setup | Feb 19, 2019
    Norton setup-When you are done with the downloading the Norton Setup files, you need to install and activate it. Follow these steps for norton.com/setup install. norton setup
  10. Lizey | Feb 18, 2019
    Thanks so much for this post! Great wise words from the voice of experience like you! I have forwarded your website to my friends!seo
  11. Lizey | Feb 18, 2019
    My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more!scs 718 static sensor
  12. Chandigarh Escorts Service | Feb 18, 2019
  13. nortonsetup | Feb 18, 2019

    This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. 



  14. kristen warne | Feb 18, 2019
    Students Assignment Help gives the best- essay writing service Dubai to the understudies by its master scholars at a conservative cost. Our online specialists are the most elevated degree holder from conspicuous colleges around the globe and can achieve any task composing.
  15. mcafee.com/activate | Feb 18, 2019



  16. verdantmarriagepalace | Feb 18, 2019
  17. calltutors | Feb 18, 2019
  18. City Night | Feb 18, 2019
    Find Dehradun Escorts for much enjoyment and fun contact us for top class Call girls in Dehradun at a cheap cost. Book now female escort services in Dehradun. Haridwar Escorts | Mussoorie Escorts Service
  19. rajat gaikwad | Feb 18, 2019

    I am grateful to the owner of this site which really shares this wonderful work of this site.That is actually great and useful information.I'm satisfied with just sharing this useful information with us. Please keep it up to date like this.Thank you for sharing..

    website development company in patna packers and movers in patna cctv camera dealers in patna jobs in patna

  20. Sophie Miller | Feb 18, 2019
    Je vous remercie de l'information! Je cherchais et ne pouvait pas trouver. Vous me aidé! 192,168,0,1
  21. royaljaipur | Feb 17, 2019
  22. Lizey | Feb 16, 2019
    I have bookmarked your blog, the articles are way better than other similar blogs, thanks for a great share,!annabel law singapore 
  23. Jerry Wayne | Feb 16, 2019
    Oh, Great post and impressive writing. If I say you are superb with your topic then it would not be wrong. Please post some more related topics. Thank and visit our Microsoft support website, if are getting glitches with your printer. Thanks
  24. Mannes | Feb 16, 2019
    Optimization and testing go side by side, but what laptop do you prefer to do testing on?
  25. wert | Feb 15, 2019
    Good morning flower images are makes you very happy and romantic morning of the day.
  26. serw | Feb 15, 2019
    here u can get all [url=http://hiall.in/]Good Morning flower Images[/url] in HD.
  27. subharai332 | Feb 15, 2019
    here u can get all <a href="http://hiall.in/">Good Morning Images With Flowers</a> in HD.
  28. shivashtakam | Feb 15, 2019
    who is khatu shyam - Khatu shyam ji is a Famous God of current time (Kaliyuga). Many years ago Lord Krishna gave him the boon to be worshiped at current time when Veer Barbareek sacrificed his head in the way of religion. Baba Shyam ji ki aarti, Khatu shyam storyWhere is khatu shyam temple? - Lord Krishna delighted with Barbareek's great sacrifice (Sheesh Daan), granted him the boon that when Kaliyug (Present times evil times) come downs, he would be worshiped by the name of Shyam in his form. he is also called Sheesh Ke Daani (Donor of head) in his Devotees. Where is khatu shyam ji located - He fulfills all wishes of his pilgrims whose have true heart . Khatu shyam mandir timings, how to reach khatu shyam ji from jaipurBenefits of Shivashtakam Stotram - According to Hindu Mythology chanting of Shivashtakam Stotram regularly is the most powerful way to please God Shiva and get his blessing.Shivashtakam in english - To get the best result you should do recitation of Shivashtakam Stotram early morning after taking bath and in front of God Shiva Idol or picture. You should first understand the Shivashtakam meaning in hindi to maximize its effect.shivashtakam meaning - Regular recitation of Shivashtakam Stotram gives peace of mind and keeps away all the evil from your life and makes you healthy, wealthy and prosperous. Can we use Shivashtakam mantras in the evening?
  29. Webhosting Onedollar | Feb 15, 2019

    I lately determined many useful recommendations to your internet site specifically this blog page. you should visit here if you are looking for affordable web hosting 1 dollar hosting  many of the lots of clarification from your articles. thanks for sharing.


  30. assignment help | Feb 14, 2019
    Seriously! That may be very good, very simple, very helpful information sites for students. We have now turned up throughout this subject matter. visit our site to get all topics of assignment.  @page { margin: 2cm } p { margin-bottom: 0.25cm; direction: ltr; line-height: 120%; text-align: left; orphans: 2; widows: 2 } a:link { color: #0563c1 } https://www.allassignmenthelp.com  @page { margin: 2cm } p { margin-bottom: 0.25cm; line-height: 120% } a:link { so-language: zxx } Assignment help
  31. Splendid Interiors | Feb 14, 2019
    Ah,so beautiful and wonderful post!An opportunity to read a fantastic and imaginary blogs.It gives me lots of pleasure and interest.Thanks for sharing. Find the Interior Designers in Madhurawada
  32. Lizey | Feb 14, 2019
    Thanks for the nice blog. It was very useful for me. I m happy I found this blog. Thank you for sharing with us,I too always learn something new from your post.,excercise for weight loss 
  33. LIZEY | Feb 14, 2019
    Very efficiently written information. It will be valuable to everyone who uses it, including myself. Thanks a lo

    workout routine

  34. alexmolipo | Feb 14, 2019
    alta definizione While there is a good chance that you already know what you want your online video to be about, but there is also a chance that you have no idea. 
  35. Garmin.com/express | Feb 14, 2019
    Garmin.com/express - Along with all the different devices for the navigation, outdoor activities, and fitness, the Garmin has also given an application to manage these devices at one place, this application is called Garmin Express. garmin.com/express
  36. Tophosting Website | Feb 14, 2019
    I’m extremely impressed with your writing skills as well as with the layout on your blog. Beautifully written article. you guys provided rare information about this topic. I appreciate your hard work. Great work! visit ou website of best web hosting providers, 1 dollar domain , 99 rs domain godaddy. This is the kind of information is supposed to be shared around the internet.
  37. Heidi Kloss | Feb 14, 2019
    Here we give you some Detoxifying Smoothie for you. Hope so you will love it.
  38. Webroot | Feb 14, 2019

    www.webroot.com/safe - Webroot antivirus is one of the most hassle free antivirus programs that you can opt for especially with help from Best Buy Geek squad. This can be installed in a simple manner and you can be assured of online safety no matter where you shop, what game you play or what social media platform you engage in.

  39. Adam | Feb 14, 2019
    Online security is essential for all devices that you used to connect in the online space. You can Download Webroot on all such devices and safeguard your online presence. This antivirus can be installed on one or multiple devices at the same time. You can also get complete help and guidance for smooth and hassle-free Webroot installation on PCs. Check out at www.webroot.com/safe
  40. Shipping Company in India | Feb 13, 2019
    Awesome post! An opportunity to read a awesome blogs, It gives me lots of pleasure and interest, I really like to read your article, the points you have mentioned in this article are helpful for me, thank you for sharing this blog with us. Shipping Company in India
  41. Muhammad Jalal | Feb 13, 2019
    Very nice post. If you are looking for Best Knee Scooters just click here and you can find a suitable one for you.
  42. LIZEY1 | Feb 13, 2019
    Very efficiently written information. It will be valuable to everyone who uses it, including myself. Thanks a lot


    Tabrez Rubberwala

  43. LIZEY | Feb 13, 2019
    This is really a nice and informative, containing all information and also has a great impact on the new technology.


    mark ramer and michael saperstein

  44. Priyanag | Feb 13, 2019

    Very informative and well detailed information thanks for this

    job in West Bengal

  45. Priya | Feb 13, 2019

    i must say that this is very good website

    holi images hd 2019

  46. Lifestyle Magazine | Feb 13, 2019
    Awesome post! An opportunity to read a awesome and imaginary blogs, It gives me lots of pleasure and interest, I really like to read your blog, the points you have mentioned in this article are helpful for me, thank you for share this superb blog with us. Lifestyle Magazine
  47. siena william | Feb 13, 2019
    This is the main reason why most students search for online assignmenthelp Australia over the internet and choose only the most proficient and trusted academic writing experts. Law assignment help Australia in understanding how legal theories and concepts can be enforced in the real world. That is why Australian search engine is filled with the terms such as help essay, assignments in essay, online assignment help, service companies who deals in essay writing, help essay writing, who can do my essay assignment, help with essay, I am in need essay help, who can help with my essay problem, and many more. Structuring an essay successfully is a difficult task, therefore All students looking for assignment help Sydney can reach us and avail the best online assignment help Sydney from our academic experts.
  48. Motorcycle Tour in Goa | Feb 13, 2019
    Wonderful post! An opportunity to read a awesome and imaginary blogs, I really like to read your blog, the points you have mentioned in this article are helpful for me, thank you for share this superb blog with us. Motorcycle Tour in Goa
  49. web development company in delhi | Feb 13, 2019
    Wonderful post! An opportunity to read a fantastic and imaginary blogs, I really like to read your blog, the points you have mentioned in this article are helpful for me, thank you so much for share this awesome blog post, web development company in delhi
  50. Truck Branding Services india | Feb 13, 2019
    I really like to read your blog, the points you have mentioned in this article are helpful for me, thank you so much for share this awesome blog post, Truck Branding Services india

    Leave a comment