﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>MGinAction.com - Forum / MGinAction.com Forum / Website Suggestions  / Why the website is slow? It's because of the .Net ViewState! / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>MGinAction.com - Forum</description><link>http://www.mginaction.com/Forum/</link><webMaster>forum@mginaction.com</webMaster><lastBuildDate>Sat, 25 May 2013 14:42:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Why the website is slow? It's because of the .Net ViewState!</title><link>http://www.mginaction.com/Forum/Topic2442-6-1.aspx</link><description>They do have viewstate enabled. If they're not actually using it for postbacks etc I agree they should disable it. Since they're using jquery, I'm guessing they could probably turn it off since it's probably more ajax than classic asp.net postbacks.&lt;br&gt;&lt;br&gt;However, the viewstate payload isn't actually that big. Take a random page:&lt;br&gt;&lt;br&gt;http://www.mginaction.com/VideoDetails.aspx?VideoId=9774&lt;br&gt;&lt;br&gt;The viewstate for that page is only 221k. &lt;br&gt;&lt;br&gt;But -- you're right -- the overall payload is large.&lt;br&gt;&lt;br&gt;If you run it through Firebug and look at the totals in the "net" tab results, that page weighs in at 198 requests (!) and 3.6MB total which is actually much larger than the 1/2mb you mentioned.&lt;br&gt;&lt;br&gt;So, just at a glance, I'd say turning off viewstate wouldn't help. I'd start by evaluating overall page construction + response time of individual items. I'm guessing WebResource.axd is dragging and there are unnecessary calls to ScriptResource.axd (maybe something like including Telerik controls that aren't actually used)&lt;br&gt;&lt;br&gt;That said, it's actually not that slow for me :)&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 02 Jan 2012 21:23:30 GMT</pubDate><dc:creator>jknight</dc:creator></item><item><title>Why the website is slow? It's because of the .Net ViewState!</title><link>http://www.mginaction.com/Forum/Topic2442-6-1.aspx</link><description>MGinAction is very, very slow. I suspect this is mostly to do with what .Net calls the ViewState.&lt;br&gt;&lt;br&gt;Each page is about 1/2 a megabyte. This is terrifically huge. Especially because each time we use a form on the page this mass of data in the viewstate is being submitted back to the server. I promise if engineer the viewstate out of your application it will be much, much faster. The viewstate is really handy, but very poorly performing.&lt;br&gt;&lt;br&gt;Here is a fantastic article explaining all about the viewstate.&lt;br&gt;http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;-Patrick Te Tau</description><pubDate>Mon, 28 Nov 2011 05:18:06 GMT</pubDate><dc:creator>ptetau</dc:creator></item></channel></rss>