// module 脚本:默认 defer;此处先记录自身时序,再延迟打印整条时间线, // 给 async 脚本留出加载时间。 import { run } from './main.js'; window.__rec('module', { bodyComplete: document.readyState !== 'loading', afterMarkerExists: !!document.getElementById('after-classic') }); setTimeout(function () { var lines = []; run(function (s) { lines.push(s); console.log(s); }); var pre = document.getElementById('output'); if (pre) pre.textContent = lines.join('\n'); }, 500);