export const untitled_blueZebra = (async () => {
const { default: lighthouse } = await import("npm:lighthouse");
const { default: chromeLauncher } = await import("npm:chrome-launcher");
const chrome = await chromeLauncher.launch({ chromeFlags: ["--headless"] });
const options = {
logLevel: "info",
output: "html",
onlyCategories: ["performance"],
port: chrome.port,
};
const runnerResult = await lighthouse("https://www.trainor.com/", options);
const reportHtml = runnerResult.report;
console.log(reportHtml);
console.log("Report is done for", runnerResult.lhr.finalDisplayedUrl);
console.log(
"Performance score was",
runnerResult.lhr.categories.performance.score * 100,
);
await chrome.kill();
})();