Hope this is the best report you used library
- loadtime: Report of the dom related time and ATF
- network: Report the resource requests timeout
- error: Record the request and error code
Close it on the web, send a statistical package
KReport.setOptions()
http://k-report.404mzk.com/Example/loadtime/index.html
Try to send the report on the console to perform KReport.sendMessage()
active packet
<script src="http://publish.404mzk.com/1-0-0index.bundle.js"></script>
And it's just as easy with npm:
npm i --save npm install K-Report
- atf === -1 : 用户刷新过快,还没统计首屏时间
- atf > window_loaded : 用户刷新过快,还没统计完首屏时间