Why do my ASP.NET pages render slowly when placed on the server?

前端 未结 7 436
忘了有多久
忘了有多久 2021-01-27 07:43

I have a simple aspx page with a GridView control. I\'m loading the GridView with search results after the click of a button. Everything works, but the HTML rendering on the bro

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-27 08:21

    If you're not already compressing the HTTP Response, you should look into doing that.

    • Look at Yslow for FireFox (start here)
    • Compress your response with standard gzip/deflate compression
    • Do what you can to reduce the amount of data in your GridView. Elminate unecessary columns, etc.
    • Turn off viewstate
    • Use jsmin to reduce the size of your JavaScript files (if any)
    • Reduce the size of your CSS (if any)

提交回复
热议问题