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 --
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 --