JIT(Just In Time)
? A crash course in just-in-time (JIT) compilers
? WebAssembly 系列(二)JavaScript Just-in-time (JIT) 工作原理
? JavaScript 為什么快
測試代碼的性能
? 原則
– 相同時間 次數(shù)
– 相同次數(shù) 時間
? 在線benchmark測性能
? Benchmark.js
? jsperf
先用原生的方法,不建議用Hack方式
Lazy
? throttle & debounce – resize 節(jié)流&防抖
– scroll
– suggest
? lazyload & preload
渲染性能
? Rendering Performance
? 狙殺頁面卡頓 —— Performance 工具指北
? fps
? setTimeout & requestAnimationFrame
? 大列表優(yōu)化
MTU
? Reduce the size of the above-the-fold content 14.6kB
? Maximum transmission unit
? inline
? base64
http/2 vs QUIC
優(yōu)化到最后協(xié)議上的優(yōu)化是最直接的
? 從HTTP2到QUIC——QQ空間Web加速實踐
? QUIC協(xié)議初探-iOS實踐
? 讓互聯(lián)網(wǎng)更快的協(xié)議,QUIC在騰訊的實踐及性能優(yōu)化
? Data compression of HTTP headers
? HTTP/2 Server Push
? Pipelining of requests
? Multiplexing multiple requests over a single TCP connection
? tcp vs udp