web-report-sdk
web-report-sdk copied to clipboard
A complet sound web performance report plug-in.
看了一下报错信息是因为Sentry会监听fetch Api的报错 https://github.com/getsentry/sentry-javascript/blob/master/packages/browser/src/integrations/breadcrumbs.ts ``` /** JSDoc */ private _instrumentFetch() ... const fetchData: { method: string; url: string; status_code?: number; } = { method: isString(method) ? method.toUpperCase() : method, url, };...
Uncaught (in promise) TypeError: Failed to execute 'json' on 'Response': body stream is locked
在空目录里`npm i jquery web-report`然后创建以下页面: ``` Performance({ domain: '/', }); var request = $.ajax("/"); request.abort(); ``` 就会 ``` defaultReport.js:1 Uncaught TypeError: Cannot read property 'apply' of null ``` 好像是patch `XMLHttpRequest`对象弄坏的?
 修改建议: 转 -----> 专
onreadystatechange未过滤url 使得loadNum增加导致后续请求上报失败 如图:  https://github.com/wangweianger/web-report-sdk/blob/ef1afc85baee53ccdc683c920256f1bb9f1026f2/src/web-report-default.js#L120
首屏渲染时间
请问如果判断首屏渲染时间
浏览器:WebKit,浏览器版本:605.1.15,系统:iOS,系统版本:12.2 报错:"window.performance.getEntriesByType is not a function. (In 'window.performance.getEntriesByType('resource')', 'window.performance.getEntriesByType' is undefined)" stack: "perforResource "
Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Worker': TypeError: ReadableStreamReader constructor can only accept readable streams that are not yet locked to a reader could not be cloned....