Note: The following is a translation of the Presentation Layer Performance Tuning article, which covers the main aspects of optimizing the load of web applications and offers some practical tips.
The usual talk about increasing the speed of web applications is to discuss delays in transferring information between the server and the client, optimizing the database and the time spent by the server for processing and sending HTML to the client.
These processes, however, only partially affect the time that a client spends waiting for a page to load in his browser window. Most of the time is spent on loading, caching and displaying JavaScript, CSS and images ( note: non-HTML files ). Optimizing the performance of the presentation layer (web application), in fact, boils down to two simple conditions: ')