Chapter 13. Improving JavaScript Loading
One approach to improving page performance is to shift functionality from the server to the browser. Instead of calculating a result or validating a form in C# on the server, you use JavaScript code on the browser. As a result, fewer user actions require the browser to send a request to the server and wait for the response, greatly improving responsiveness. You also reduce the load on the server. Chapter 11, Optimizing Forms goes into more detail.
A drawback of this approach is that it involves physically moving code from the server to the browser. Because JavaScript is not compiled, it can be quite bulky. This can affect page load times, especially if you use large JavaScript libraries. You're effectively ...
Get ASP.NET Site Performance Secrets now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.