Applying Performance Best Practices
As mentioned at the beginning of this chapter, the content in this chapter applies to client and server techniques to get the most out of your ASP.NET websites.
In this section, we’ll first focus on optimizing the client by applying image optimization, minimizing your requests, using CDNs, and other tips to improve client-side performance. Then we’ll focus on server-side techniques such as optimizing your HTML, caching, and Entity Framework Core performance techniques along with identifying slow queries.
Optimizing client-side performance
In this section, we’ll learn about image optimizations, identifying Google’s Core Web Vitals metrics, using a CDN when applicable, how to minimize requests, and where to place scripts and styles.
Fixing Image Optimization
According to the Web Almanac (https://almanac.httparchive.org/en/2022/media#bytesizes), image optimization is one of the worst problems on the web. The...