blob: 5a7ceef49418db6455c6c1f1564a64f81697683c [file] [log] [blame]
async function waitForFCP()
{
await new Promise(resolve => requestAnimationFrame(() => resolve()));
return window.performance.getEntriesByName('first-contentful-paint').length == 1;
}