Front-end performance optimization list:
- JS
-
Reduce DOM manipulation
-
preload
-
Lazy loading
-
tree shaking
-
Anti-shake, throttling
-
Variable cache
-
For traversal takes precedence
-
Interface data lazy request
- CSS
-
Reduce the class hierarchy
-
Hardware acceleration (3D Canvas WebGL)
-
Sprite figure
-
Avoid using filters
- html
- Reduce invalid labels
- As a whole
-
Reduce the number of HTTP requests (empty SRC HTTP)
-
keep-alive
-
CDN content distribution
-
Gzip compression
-
Js CSS merge compression, image compression
-
Reduce cookie size
-
Use caching wisely
-
Js CSS position to avoid blocking
Welcome to the front end learning punch group learning ~ 516913974