- 掃描 ID:
- ea691ac2-2606-4aaf-ab8e-92c808678615已完成
- 已提交的 URL:
- https://mitie.service-now.com/scripts/doctype/xperf_timing.jsx
- 報告完成時間:
連結 · 找到 0 個
從頁面中識別的傳出連結
JavaScript 變數 · 找到 3 個
在頁面的視窗物件上載入的全域 JavaScript 變數是在函數外部宣告的變數,可從目前範圍內程式碼中的任何位置存取
名稱 | 類型 |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
主控台記錄訊息 · 找到 0 條
記錄到 Web 主控台的訊息
HTML
頁面的原始 HTML 主體
<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*! RESOURCE: /scripts/doctype/xperf_timing.js */
window.NOW.xperf = window.performance || {};
if (!NOW.xperf.now) {
NOW.xperf.now = function() { return new Date().getTime(); };
}
NOW.xperf.parseBegin = NOW.xperf.now();
NOW.xperf.cssBegin = NOW.xperf.now();
window.addEventListener("DOMContentLoaded", function(){
var x = NOW.xperf;
var last = x.lastDoctypeEnd - x.lastDoctypeBegin;
if (window.console) {
console.log("+-- Parse times");
console.log("| CSS parse: " + (x.cssEnd - x.cssBegin));
console.log("| JS doctype: " + (x.scriptEnd - x.scriptBegin));
console.log("| JS at end of page: " + last);
console.log("+-- All parsing: " + (x.parseEnd - x.parseBegin + last));
}
var ms = Math.round(x.parseEnd - x.parseBegin + last);
CustomEvent.fire('page_timing', { name: 'PARS', ms: ms, win: window });
if (window.performance && performance.timing) {
NOW.xperf.z = new Date().getTime();
setTimeout(function () {
var x = performance.timing.loadEventEnd - performance.timing.domContentLoadedEventStart;
CustomEvent.fire('page_timing', { name: 'DOMC', ms: x, win: window });
x = performance.timing.loadEventStart - NOW.xperf.z;
CustomEvent.fire('page_timing', { name: 'PROC', ms: x, win: window });
}, 250);
}
});
;
</pre></body></html>