1. Accelerate the DNS service or configure hosts
2, keep alive
Keep the connection and reuse it
3. SQL optimization
The back end optimizes the query speed of SQL statements to make them return to the front end data faster
4. Improve server bandwidth
It is usually decided by finance and involves budget issues.
5. Compress gzip
If gzip code compression is enabled on the backend, the browser automatically decompresses it
6. Optimize CSS to combine the same styles
7. Load CSS first and then JS
Adjust its loading order, so that users see the page first, in the implementation of its JS functions
Lazy loading
Load what the user sees first and load the rest on demand.
9. Preloading
For parts with high user visits, you can load them in advance, such as the next page of a novel.
HTTP cache CSS/JS/images
If you set the cache time on the backend, you can use the hash value to determine whether to update the corresponding file. Otherwise, you cannot determine whether to update the HTML file.
11. Add domain name CDN
Increase the number of simultaneous requests
12, the cookie – free
Separate multiple domain name requests that require cookies from those that do not, speeding up requests that do not require cookies.