Sunday, April 26, 2009

We got rid of ScriptManager and jQuery $.Ajax is In

We took another major step to make jQuery the new way of life in our Product. Earlier we were using ASP.Net libraries and ScriptManager (bundle of useless java script). I might sound harsh on ScriptManager and ASP.Net all through the post, but it just goes to show that how much it has hurt in past. 

We have REST Layer, where in we publish WCF Services and in Client we used to register by the help of  Script Manager. In turn it used to download at least 400 to 600 odd kb of js. I am not negating the power of script manager. But i feel bundling everything in one library is very painful for people who will only use some percentage of it.

We tried lot of ways to enhance performamce, it came to a level when we removed script manager control and added end js on aspx page. But still there was nothing in return. So now we removed Script Manager and are using $.Ajax functionality of jQuery.

Thats why i liked jQuery, its a pretty neat and structured way to categorize usage. Although its all java script, syntax and language is easy and worth using. I cant stop mentioning that end performance is phenomenal.

Am not giving much examples here, Read Rick Strahl Blog for implementation.