1. Overview
As a developer, we always need to minimize the amount of data passed to optimize bandwidth usage.
This includes cleaning up unused JS scripts, removing unused or redundant styles from CSS files,
You can also use the bindings and refiners of JS and ASP. NET MVC to remove extraneous information from the script and merge it into a separate script file for download.
If the dimensions are still large, you can also consider using data compression.
After you optimize the size, you also need to consider minimizing the impact of the network. The most obvious way is to minimize the number of interactions between the server and the client. Content Delivery Network (CDN) can be very helpful.
This chapter includes organizing and optimizing scripts (CSS and JavaScript), compressing and decompressing data (using Gip/deflate;storage), and trying to plan CDN policies (such as Windows Azure CDN).
2. Main content
2.1 Finishing and optimizing scripts (CSS and JavaScript)
Not to be continued ...
18th. Reduce bandwidth consumption by improving user experience