@ogygia/insights 0.15.1 → 0.16.0
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.
- package/dist/page-insights.js +1 -1
- package/package.json +4 -4
package/dist/page-insights.js
CHANGED
|
@@ -747,7 +747,7 @@ function analyze_page(page, regions, failures = [], now = Infinity, cpu = null)
|
|
|
747
747
|
code: "lcp-lazy",
|
|
748
748
|
severity: "warn",
|
|
749
749
|
message: `The largest paint (${lp.lcp_tag ?? "img"}${file ? ` ${file}` : ""}${lp.lcp_fp ? ` in ${by_fp.get(lp.lcp_fp)?.name ?? lp.lcp_fp.slice(0, 8)}` : ""}) carries loading="lazy": the browser waits to fetch it until layout says it is on screen, and puts it behind the page's other downloads.`,
|
|
750
|
-
fix: "Drop `loading=\"lazy\"` on images of the first screen (keep it for the ones below), and give the hero `fetchpriority=\"high\"`.",
|
|
750
|
+
fix: "Drop `loading=\"lazy\"` on images of the first screen (keep it for the ones below), and give the hero `fetchpriority=\"high\"`. An `<Img>` from `@ogygia/image` does both when it is given `priority`.",
|
|
751
751
|
fps: lp.lcp_fp ? [lp.lcp_fp] : []
|
|
752
752
|
});
|
|
753
753
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ogygia/insights",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "The analysis engine for ogygia: what the browser measured on a page visit or a recorded session, turned into findings for the devtools dock, the profiler's report and @ogygia/testing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"devtools",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ogygia/machine": "^0.
|
|
36
|
+
"@ogygia/machine": "^0.16.0",
|
|
37
37
|
"devalue": "^5.9.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@ogygia/config": "0.0.0",
|
|
41
|
-
"@ogygia/core": "0.
|
|
41
|
+
"@ogygia/core": "0.16.0",
|
|
42
42
|
"@sveltejs/vite-plugin-svelte": "^7.2.0",
|
|
43
43
|
"@types/node": "^26.1.2",
|
|
44
44
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"vitest": "^4.1.12"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@ogygia/core": "^0.
|
|
52
|
+
"@ogygia/core": "^0.16.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsdown",
|