当前位置:网站首页>WEB页面性能优化面试题
WEB页面性能优化面试题
2022-06-12 07:35:00 【是张鱼小丸子鸭】
1 为什么要进行页面性能优化?
2. 减少HTTP请求?
3 .合并CSS、合并javascript、合并图片
4.合理设置缓存
5.将更新频率比较低的CSS、javascript、logo、图标等静态资源文件缓存在浏览器中
6.CSS放在页面最上部,javascript放在页面最下面
7.减少作用域链查找
8.css和注释
9.CSS Sprites(精灵图 || 雪碧图 )
10.减少dome请求
11.节流和防抖
防抖(debounce)
延迟的抖动函数
总结
节流(throttle)
边栏推荐
- AI fanaticism | come to this conference and work together on the new tools of AI!
- Source code learning - [FreeRTOS] privileged_ Understanding of function meaning
- SQL -- course experiment examination
- Summary of software testing tools in 2021 - unit testing tools
- Modelants II
- Keil installation of C language development tool for 51 single chip microcomputer
- Static coordinate transformation in ROS (analysis + example)
- Voice assistant - Measurement Indicators
- Voice assistant -- vertical class perpetual motion machine -- automated iteration framework
- Unity用Shader实现UGU i图片边缘选中高亮
猜你喜欢

Logistic regression

What is a good recommendation system?

面试计算机网络-传输层

Detailed explanation of 8086/8088 system bus (sequence analysis + bus related knowledge)

Voice assistant - overall architecture and design

MySQL索引(一篇文章轻松搞定)

Demonstrate "topic communication, action communication, service communication and parameter server" with a small turtle case

右击文件转圈卡住、刷新、白屏、闪退、桌面崩溃的通用解决方法
![[tutorial] deployment process of yolov5 based on tensorflow Lite](/img/d0/c38f27ad76b62b27cdeb68728e9c8c.jpg)
[tutorial] deployment process of yolov5 based on tensorflow Lite

2022电工(初级)考试题库及模拟考试
随机推荐
[yolo-v5 learning notes]
QT realization tray
modelarts二
Keil installation of C language development tool for 51 single chip microcomputer
Unity uses shaders to highlight the edges of ugu I pictures
Summary of machine learning + pattern recognition learning (II) -- perceptron and neural network
Vs2019 MFC IP address control control inherits cipaddressctrl class redrawing
VS2019 MFC IP Address Control 控件继承CIPAddressCtrl类重绘
2022起重机械指挥考试题模拟考试平台操作
右击文件转圈卡住、刷新、白屏、闪退、桌面崩溃的通用解决方法
Summary of machine learning + pattern recognition learning (IV) -- decision tree
Voice assistant - Multi round conversation (process implementation)
晶闸管,它是很重要的,交流控制器件
Personalized federated learning with exact stochastic gradient descent
2022电工(初级)考试题库及模拟考试
AcWing——4269校庆
Voice assistant - overall architecture and design
Machine learning from entry to re entry: re understanding of SVM
AI狂想|来这场大会,一起盘盘 AI 的新工具!
Model deployment learning notes (I)