Addressing the problem of slow loading web pages
As web developers we normally confront the user requirement that the page renditions be instant without any delay. In traditional web applications, we normally have the thumb rule of 8 second rule as a threshold to indicate that the pages should complete their rendition in less than 8 seconds. And now with RIA expectations and Web 2.0 standards, the pages behave akin to desktop applications diminishing the difference between desktop application and web application to submerge the wait time between round tri
Divide and Rule
Do not have the entire page post between the response. You can make use of partial postbacks in various AJAX frameworks so that only relevant portions of the page refresh instead of the whole page. This also saves a lot of bandwidth for both the server and the client. Add to it the savings from unnecessary processing of redundant portions of the web page for the server. When sections of the page refresh, you can also try using a progress bar in those areas alone.Tips
You can try making use of Caching for the following parts in the web page to speed up the renditions:
Google, Microsoft and MediaTemple CDNs are a few common and frequently referred CDNs by websites.
Starting with .NET framework 4.5, System.Web.Optimization namespace provides an elegant way to bundle all JavaScript and CSS files from a given folder into a single file.
Try to see if frequently accessed page contents can be cached at the server instead of making repeat database calls. Summary
I hope that these small tips and tricks would help a beginner to tremendously enhance the user experience in the rendition of their web pages.