Skip to content

Commit

Permalink
Merge branch 'main' of github.com:HTTPArchive/almanac.httparchive.org…
Browse files Browse the repository at this point in the history
… into production
  • Loading branch information
tunetheweb committed Feb 23, 2024
2 parents a3a2180 + cf762cb commit b6ae7fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/lighthouse/lighthouse-config-prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"preset": "lighthouse:recommended",
"assertions": {
"categories:accessibility": ["error", {"minScore": 1}],
"categories:best-practices": ["error", {"minScore": 0.92}],
"categories:best-practices": ["error", {"minScore": 0.78}],
"categories:seo": ["error", {"minScore": 1}],
"bf-cache": "off",
"bootup-time": "off",
Expand Down
4 changes: 2 additions & 2 deletions src/config/last_updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
},
"/static/js/send-web-vitals.js": {
"date_published": "2021-02-24T00:00:00.000Z",
"date_modified": "2024-02-08T00:00:00.000Z",
"hash": "63611e8cc5b4e52b4d3d65866dbade27"
"date_modified": "2024-02-23T00:00:00.000Z",
"hash": "dbdf76e48652c343c8d368cf130f7928"
},
"/static/js/web-vitals.js": {
"date_published": "2020-11-13T00:00:00.000Z",
Expand Down
2 changes: 1 addition & 1 deletion src/static/js/send-web-vitals.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function sendWebVitals() {
return entry.startTime < (loaf.startTime + loaf.duration) && loaf.startTime < (entry.startTime + entry.duration);
}).forEach(loaf => {
loaf.scripts.forEach(script => {
const totalDuration = script.startTime + script.duration - script.desiredExecutionStart;
const totalDuration = script.startTime + script.duration;
if (totalDuration > loafAttribution.debug_loaf_script_total_duration) {
loafAttribution = {
// Stats for the LoAF entry itself.
Expand Down

0 comments on commit b6ae7fe

Please sign in to comment.