0.0.1 • Published 6 years ago
p-perf v0.0.1
p-perf
Calculate page performance with window.performance.
计算网页页面的各种加载时间,用于性能监控和性能调优。
Install
npm i --save p-perf
Then import it.
import pagePerformance from 'p-perf';
or import it by script
in HTML, then get pagePerformance
on window.
<script src="https://unpkg.com/p-perf/index.js"></script>
API
There is only 3 API:
- overview()
Get the overview performace time.
- whiteScreen()
Get the whiteScreen time.
- firstScreen()
Get the firstScreen time.
License
ISC@hustcc.
0.0.1
6 years ago