lighthouse 11.1.0-dev.20230920 → 11.1.0-dev.20230922
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -62,6 +62,11 @@ async function collectTagsThatBlockFirstPaint() {
|
|
|
62
62
|
/** @type {Array<LinkTag>} */
|
|
63
63
|
const linkTags = [...document.querySelectorAll('link')]
|
|
64
64
|
.filter(linkTag => {
|
|
65
|
+
// Ignore malformed links with no href (e.g. `<link rel="stylesheet" href="">`)
|
|
66
|
+
// The resolved `linkTag.href` will be the main document, but the main document
|
|
67
|
+
// should never be render blocking.
|
|
68
|
+
if (!linkTag.getAttribute('href')) return false;
|
|
69
|
+
|
|
65
70
|
// Filter stylesheet/HTML imports that block rendering.
|
|
66
71
|
// https://www.igvita.com/2012/06/14/debunking-responsive-css-performance-myths/
|
|
67
72
|
// https://www.w3.org/TR/html-imports/#dfn-import-async-attribute
|
package/package.json
CHANGED