Speaking of performance optimization, I'm afraid I can't finish it for several days and nights. Today I want to talk about Web Front-end optimization, hoping to bring unexpected gains to everyone!
If we want to talk about front-end optimization, we have to mention Yahoo's yslow and Google's pagespeed. as long as their standards are concerned, they can be optimized very well. I will not talk about some simple web optimization, such as code compression, Gzip, and file integration. If you have any questions, please refer to Google Baidu, or leave a message!
-
CSS is separated from the upper and lower sides. Small CSS and JS are written to the page.
-
Base64 Image
CSS Obfuscation
-
CSS: The image base64 is stored in localstorage.
-
<LINK rel = "DNS-prefetch" href = "// abc.baidu.com">
-
No more than 4 Page domain names
-
Persistent connection (img src)
-
Reduce cookiesize
This article is from the "Village Chief love technology" blog, please be sure to keep this source http://weijingwu.blog.51cto.com/8376555/1550622
Frontend Performance Optimization