ASP.Net Ajax payload size compared to jQuery 0

Let me start off by saying this isn’t scientific, or possibly even accurate, but was pretty shocking at first glance. I wanted to take a look at what the true size of our pages were, so I brought up Chrome’s nice resource inspector and refreshed and average page from our intranet application. It was a bit shocking at first.

image

All that orange is javascript! Now, I know the browser is probably caching that, when it goes through IIS – Cassini won’t cache it—, butit still seems like a pretty big chunk, but it’s probably all the jQuery and jQuery plugins we’re using right?

image

Without the rest of the files, it’s hard to put that into perspective, but trust me ,that is pretty small. What about the plugins?

image

Those are pretty small too. All that javascript has to be somewhere right? What about ASP.Net Ajax?

image

I had to scale the image so it would fit, but there is a lot there. You may have noticed that we are using the min version of the jQuery file. Is the ASP.Net Ajax minified?

NOPE!

I haven’t really looked to see if it is possible to shrink that JS somehow, we’ll see about doing that soon.

ReSharper Tip of the Day: Refactor This 0

In a recent post Oleg Stepanov pointed out the mother of all refactoring shortcuts. At any point, you can press Ctrl + Shift + R to see all possible refactorings available under your current context.

What I’ve lacked lately in content, I can make up in screenshots. 

As a side note, this is a the first post written with Google Chrome. So far I really like it. The one thing I’ve found that is slightly odd is that backspace will take me out of my text area and an additional backspace will go back in the browsing history.