-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlighthouse.json
329 lines (329 loc) · 10.8 KB
/
lighthouse.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
{
"passes": [
{
"recordNetwork": true,
"recordTrace": true,
"gatherers": [
"url",
"https",
"viewport",
"theme-color",
"manifest",
"accessibility",
"content-width",
"cache-contents",
"geolocation-on-start"
]
},
{
"passName": "offlinePass",
"recordNetwork": true,
"gatherers": [
"service-worker",
"offline"
]
},
{
"gatherers": [
"http-redirect",
"html-without-javascript"
]
}
],
"audits": [
"is-on-https",
"redirects-http",
"service-worker",
"works-offline",
"viewport",
"manifest-display",
"without-javascript",
"first-meaningful-paint",
"speed-index-metric",
"estimated-input-latency",
"time-to-interactive",
"user-timings",
"screenshots",
"critical-request-chains",
"manifest-exists",
"manifest-background-color",
"manifest-theme-color",
"manifest-icons-min-192",
"manifest-icons-min-144",
"manifest-name",
"manifest-short-name",
"manifest-short-name-length",
"manifest-start-url",
"meta-theme-color",
"aria-valid-attr",
"aria-allowed-attr",
"color-contrast",
"image-alt",
"label",
"tabindex",
"content-width",
"geolocation-on-start"
],
"aggregations": [
{
"name": "Progressive Web App",
"description": "These audits validate the aspects of a Progressive Web App.",
"scored": true,
"categorizable": true,
"items": [
{
"name": "App can load on offline/flaky connections",
"description": "Ensuring your web app can respond when the network connection is unavailable or flaky is critical to providing your users a good experience. This is achieved through use of a <a href=\"https://developers.google.com/web/fundamentals/primers/service-worker/\">Service Worker</a>.",
"audits": {
"service-worker": {
"expectedValue": true,
"weight": 1
},
"works-offline": {
"expectedValue": true,
"weight": 1
},
"cache-start-url": {
"expectedValue": true,
"weight": 1
}
}
}, {
"name": "Page load performance is fast",
"description": "Users notice if sites and apps don't perform well. These top-level metrics capture the most important perceived performance concerns.",
"audits": {
"first-meaningful-paint": {
"expectedValue": 100,
"weight": 1
},
"speed-index-metric": {
"expectedValue": 100,
"weight": 1
},
"estimated-input-latency": {
"expectedValue": 100,
"weight": 1
},
"time-to-interactive": {
"expectedValue": 100,
"weight": 1
},
"scrolling-60fps": {
"expectedValue": true,
"weight": 0,
"comingSoon": true,
"description": "Content scrolls at 60fps",
"category": "UX"
},
"touch-150ms": {
"expectedValue": true,
"weight": 0,
"comingSoon": true,
"description": "Touch input gets a response in < 150ms",
"category": "UX"
},
"fmp-no-jank": {
"expectedValue": true,
"weight": 0,
"comingSoon": true,
"description": "App is interactive without jank after the first meaningful paint",
"category": "UX"
}
}
}, {
"name": "Site is progressively enhanced",
"description": "Progressive enhancement means that everyone can access the basic content and functionality of a page in any browser, and those without certain browser features may receive a reduced but still functional experience.",
"audits": {
"without-javascript": {
"expectedValue": true,
"weight": 1
}
}
}, {
"name": "User can be prompted to Add to Homescreen",
"description": "While users can manually add your site to their homescreen in the browser menu, the <a href=\"https://developers.google.com/web/updates/2015/03/increasing-engagement-with-app-install-banners-in-chrome-for-android?hl=en\">prompt (aka app install banner)</a> will proactively prompt the user to install the app if the below requirements are met and the user has visited your site at least twice (with at least five minutes between visits).",
"see": "https://github.com/GoogleChrome/lighthouse/issues/23",
"audits": {
"service-worker": {
"expectedValue": true,
"weight": 1
},
"manifest-exists": {
"expectedValue": true,
"weight": 1
},
"manifest-start-url": {
"expectedValue": true,
"weight": 1
},
"manifest-icons-min-144": {
"expectedValue": true,
"weight": 1
},
"manifest-short-name": {
"expectedValue": true,
"weight": 1
}
}
}, {
"name": "Installed web app will launch with custom splash screen",
"description": "A default splash screen will be constructed, but meeting these requirements guarantee a high-quality and customizable <a href=\"https://developers.google.com/web/updates/2015/10/splashscreen?hl=en\">splash screen</a> the user sees between tapping the home screen icon and your app’s first paint.",
"see": "https://github.com/GoogleChrome/lighthouse/issues/24",
"audits": {
"manifest-exists": {
"expectedValue": true,
"weight": 1
},
"manifest-name": {
"expectedValue": true,
"weight": 1
},
"manifest-background-color": {
"expectedValue": true,
"weight": 1
},
"manifest-theme-color": {
"expectedValue": true,
"weight": 1
},
"manifest-icons-min-192": {
"expectedValue": true,
"weight": 1
}
}
}, {
"name": "Address bar matches brand colors",
"description": "The browser address bar can be themed to match your site. A theme-color <a href=\"https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android\">meta tag</a> will upgrade the address bar when a user browses the site, and the <a href=\"https://developers.google.com/web/updates/2015/08/using-manifest-to-set-sitewide-theme-color\">manifest theme-color</a> will apply the same theme site-wide once it's been added to homescreen.",
"audits": {
"manifest-exists": {
"expectedValue": true,
"weight": 1
},
"theme-color-meta": {
"expectedValue": true,
"weight": 1
},
"manifest-theme-color": {
"expectedValue": true,
"weight": 1
}
}
}, {
"name": "Design is mobile-friendly",
"description": "Users increasingly experience your app on mobile devices, so it's important to ensure that the experience can adapt to smaller screens.",
"audits": {
"viewport": {
"expectedValue": true,
"weight": 1
},
"content-width": {
"expectedValue": true,
"weight": 1
}
}
}
]
}, {
"name": "Best Practices",
"description": "These audits do not affect your score but are worth a look.",
"scored": false,
"categorizable": false,
"items": [
{
"audits": {
"aria-allowed-attr": {
"expectedValue": true,
"weight": 1
},
"aria-valid-attr": {
"expectedValue": true,
"weight": 1
},
"color-contrast": {
"expectedValue": true,
"weight": 1
},
"image-alt": {
"expectedValue": true,
"weight": 1
},
"label": {
"expectedValue": true,
"weight": 1
},
"tabindex": {
"expectedValue": true,
"weight": 1
},
"manifest-short-name-length": {
"expectedValue": true,
"weight": 1
},
"manifest-display": {
"expectedValue": true,
"weight": 1
},
"geolocation-on-start": {
"expectedValue": true,
"weight": 1
},
"serviceworker-push": {
"expectedValue": true,
"weight": 0,
"comingSoon": true,
"description": "Service worker makes use of push notifications, if appropriate",
"category": "UX"
},
"tap-targets": {
"expectedValue": true,
"weight": 0,
"comingSoon": true,
"description": "Tap targets are appropriately sized for touch",
"category": "UX"
},
"payments-autocomplete": {
"expectedValue": true,
"weight": 0,
"comingSoon": true,
"description": "Payment forms marked up with [autocomplete] attributes",
"category": "UX"
},
"login-autocomplete": {
"expectedValue": true,
"weight": 0,
"comingSoon": true,
"description": "Login forms marked up with [autocomplete] attributes",
"category": "UX"
},
"input-type": {
"expectedValue": true,
"weight": 0,
"comingSoon": true,
"description": "Input fields use appropriate [type] attributes for custom keyboards",
"category": "UX"
}
}
}
]
}, {
"name": "Performance Metrics",
"description": "These encapsulate your app's performance.",
"scored": false,
"categorizable": false,
"items": [
{
"audits": {
"critical-request-chains": {
"expectedValue": 0,
"weight": 1
},
"user-timings": {
"expectedValue": 0,
"weight": 1
}
}
}
]
}
]
}