Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fast ASPX Pages with CSS Class - External JavaScript - Small Viewstate

Status
Not open for further replies.

Meleagant

Programmer
Aug 31, 2001
166
US
All,

I am in the midst of trying to speed up an Asp Net site. I've read a couple of articles on how to squeeze as much speed out of pages as possible. Of the articles I've read 3 things kept on reoccurring: Control the ViewState, use CSS instead of <asp:Control ForeColor="Red" BackBolor="Blue" etc.. and if you have a lot of inline JavaScript move it to an external file.

I have done all of these and have noticed no real improvement. In fact I've slowed things down quite a bit. On the main user work page, sort of like a Case Management Page:
- Before I started the ViewState was over 150,000 charecters long. Now it is a tenth of that.
- I've moved my javascript to an external file and even ran a "minimizer" against it and now the js file is 47K as opposed to 75K.
- I've moved lost of my asp:GridView row styling to CSS classes.

The average file size sent to the client is now 210K down from 374K, BUT THE PAGE IS BLOODY WELL SLOWER! Why would pumping a smaller file across the network be slower? Does anyone have any idea's/suggestions?

Thanks,
-- Joe --
 
FireFox crashed when I tried to submit the post, I see it in MyThreads but not in the main Forum list. Hoping someone will see this and offer assistance.


* Sine scientia ars nihil est
* Respondeat superior
 
Awe Crud...sorry about that I will repost in the right section.


* Sine scientia ars nihil est
* Respondeat superior
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top