You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
documentationImprovements or additions to documentation
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
简单来说就两大条:
关于网络传输时间,简单来说又分两大条:
card-8
网页要加载七个文件虽然其中有一个是我加的,花时间加载这些小文件就会造成后面需要用到的资源的排队,因为建立传输队列消耗的时间是众生平等的)我们的使用场景理论上是一个带宽足够大的环境,因此传输时间的消耗来源主要是建立连接还有排队
对于绘图时间,我比较菜,不能像米忽悠那样看什么不爽就进行一个深度优化,所以我只是尽量做到
flex
和grid
)代替旧的布局模型(table
,float
之类的)position: absolute
就不需要什么模型了,但是按现在的互联网环境来看这么写不是很现实,网页内容是动态的,浏览器的视窗大小也不是固定不变的(智能手表、手机、平板、带鱼屏、小米冰箱显示屏)div
或者table
)或者图片(比如阴影、背景、边框都可以用 CSS 各种声明画出来,比如说 card-8 的头像边框,我就拿 CSS 画了,而不是额外整一张 png )Adachi-BOT/src/views/component/card-8/card-8.css
Lines 102 to 111 in 4f5a397
效果
其他补充文档
图解浏览器渲染过程 - 基于Webkit/Blink内核Chrome浏览器 · Issue #17 · abcrun/abcrun.github.com
浏览器的工作原理:现代网络浏览器幕后揭秘 - HTML5 Rocks
CSS Triggers
了解资源加载时序 - Chrome 开发者工具中文文档 - html中文网
前端性能优化 24 条建议(2020) - SegmentFault 思否
回流(Reflow)和重绘(Repaint) · Issue #60 · tcatche/tcatche.github.io
CSS Animation性能优化 · Issue #47 · amfe/article
Beta Was this translation helpful? Give feedback.
All reactions