Skip to content

Conversation

@DDDDDanica
Copy link
Contributor

@DDDDDanica DDDDDanica commented Nov 26, 2025

Description

Migrate react-router-dom from v5-compat and v5 to v6.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: null

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/5567, https://github.com/MetaMask/MetaMask-planning/issues/5568, https://github.com/MetaMask/MetaMask-planning/issues/5569, https://github.com/MetaMask/MetaMask-planning/issues/5570

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Replaces all v5/v5-compat routing with react-router-dom v6, refactors routes/components to v6 APIs, updates tests/stories, policies, and dependencies.

  • Routing (major migration):
    • Replace react-router-dom-v5-compat/v5 with v6 across app (hooks, Routes/Route, Navigate, useRoutes).
    • Remove CompatRouter, v5 wrappers, and prop-passed navigate/location; use v6 hooks directly.
    • Introduce helpers (toRelativeRoutePath) and v6-oriented createRouteWithLayout; rework root Routes to useRoutes.
  • Components/Pages:
    • Broad refactors to use useNavigate, useLocation, useParams, and v6 route params (e.g., Asset, Confirm flows, Swaps, Permissions Connect, Onboarding, Settings, Notifications, Multichain pages).
    • Simplify Unlock/ToastMaster/DeepLink and remove navigation context usage.
  • Tests/Stories:
    • Update mocks/imports to react-router-dom v6; remove v5-compat usage; adjust snapshots and text expectations.
    • Storybook preview.js: drop CompatRouter, use v6 Routes/Route.
  • Security/Build Policies:
    • Update LavaMoat/SES policies from react-router-dom-v5-compat to v6 (@remix-run/router) and add history globals where needed.
  • Dependencies:
    • Bump react-router-dom to ^6.28.0; remove react-router-dom-v5-compat; update @remix-run/router; regenerate lockfile.

Written by Cursor Bugbot for commit c50c837. This will update automatically on new commits. Configure here.

…gate

Updated test files that require navigation functionality:
- unconnected-account-alert.test.js
- name.test.tsx
- cancel-speedup-popover.test.js
- customize-nonce.test.js
- user-preferenced-currency-input.test.js
- snap-ui-renderer/test-utils.tsx (and its dependent form.test.ts)
- transaction-activity-log.component.test.js
@DDDDDanica DDDDDanica requested review from a team as code owners November 26, 2025 22:10
@DDDDDanica DDDDDanica self-assigned this Nov 26, 2025
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@socket-security
Copy link

socket-security bot commented Nov 26, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedreact-router-dom@​5.3.4 ⏵ 6.30.29810075 -898100

View full report

@metamaskbot
Copy link
Collaborator

metamaskbot commented Nov 26, 2025

✨ Files requiring CODEOWNER review ✨

💎 @MetaMask/metamask-assets (3 files, +4 -4)
  • 📁 ui/
    • 📁 components/
      • 📁 app/
        • 📁 assets/
          • 📁 account-group-balance/
            • 📄 account-group-balance.test.tsx +1 -1
          • 📁 account-group-balance-change/
            • 📄 account-group-balance-change.test.tsx +1 -1
          • 📁 asset-list/
            • 📁 asset-list-control-bar/
              • 📄 asset-list-control-bar.test.tsx +2 -2

📜 @MetaMask/policy-reviewers (9 files, +110 -393)
  • 📁 lavamoat/
    • 📁 browserify/
      • 📁 beta/
        • 📄 policy.json +14 -66
      • 📁 experimental/
        • 📄 policy.json +14 -66
      • 📁 flask/
        • 📄 policy.json +14 -66
      • 📁 main/
        • 📄 policy.json +14 -66
        • 📄 policy-override.json +15 -0
    • 📁 webpack/
      • 📁 mv2/
        • 📄 policy-override.json +8 -3
        • 📄 policy.json +12 -62
      • 📁 mv3/
        • 📄 policy-override.json +8 -3
        • 📄 policy.json +11 -61

Tip

Follow the policy review process outlined in the LavaMoat Policy Review Process doc before expecting an approval from Policy Reviewers.

@DDDDDanica DDDDDanica force-pushed the refactor/5566-v6 branch 2 times, most recently from 29b646e to 78999e5 Compare November 26, 2025 22:57
@metamaskbot
Copy link
Collaborator

Builds ready [78999e5]
📊 Page Load Benchmark Results

Current Commit: 78999e5 | Date: 11/26/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±39ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 730ms (±36ms) 🟢 | historical mean value: 723ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±10ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 39ms 1.02s 1.33s 1.08s 1.33s
domContentLoaded 730ms 36ms 707ms 999ms 750ms 999ms
firstPaint 78ms 10ms 68ms 164ms 88ms 164ms
firstContentfulPaint 78ms 10ms 68ms 164ms 88ms 164ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -98.12 KiB (-1.26%)
  • common: -20 Bytes (0%)

@DDDDDanica DDDDDanica force-pushed the refactor/5566-v6 branch 2 times, most recently from 72d6709 to b37b714 Compare November 26, 2025 23:39
@metamaskbot
Copy link
Collaborator

Builds ready [b37b714]
📊 Page Load Benchmark Results

Current Commit: b37b714 | Date: 11/26/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±37ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 734ms (±35ms) 🟢 | historical mean value: 723ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 79ms (±10ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 37ms 1.03s 1.31s 1.08s 1.31s
domContentLoaded 734ms 35ms 707ms 986ms 758ms 986ms
firstPaint 79ms 10ms 60ms 160ms 88ms 160ms
firstContentfulPaint 79ms 10ms 60ms 160ms 88ms 160ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -98.06 KiB (-1.26%)
  • common: -20 Bytes (0%)

@DDDDDanica
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Builds ready [8357f72]
📊 Page Load Benchmark Results

Current Commit: 8357f72 | Date: 11/30/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±42ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 729ms (±38ms) 🟢 | historical mean value: 724ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±10ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 42ms 1.02s 1.33s 1.07s 1.33s
domContentLoaded 729ms 38ms 703ms 1.00s 751ms 1.00s
firstPaint 78ms 10ms 60ms 156ms 88ms 156ms
firstContentfulPaint 78ms 10ms 60ms 156ms 88ms 156ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -97.61 KiB (-1.26%)
  • common: -18 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [254b147]
📊 Page Load Benchmark Results

Current Commit: 254b147 | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±38ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 718ms (±37ms) 🟢 | historical mean value: 724ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±15ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 38ms 1.00s 1.33s 1.06s 1.33s
domContentLoaded 718ms 37ms 697ms 993ms 743ms 993ms
firstPaint 76ms 15ms 60ms 208ms 84ms 208ms
firstContentfulPaint 76ms 15ms 60ms 208ms 84ms 208ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -97.61 KiB (-1.26%)
  • common: -18 Bytes (0%)

@DDDDDanica DDDDDanica force-pushed the refactor/5566-v6 branch 2 times, most recently from 7ccc468 to ee73b24 Compare December 1, 2025 03:08
@DDDDDanica
Copy link
Contributor Author

@metamaskbot update-policies

...renderer(component, { wrapper: Wrapper }),
history,
};
return render(component, { wrapper: Wrapper });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing export for removed function causes import error

The test/jest/index.js file exports renderWithProviderAndHistory from ./rendering, but this function was removed from test/jest/rendering.js as part of this PR's migration. This will cause a JavaScript error when anything tries to import from test/jest or specifically import renderWithProviderAndHistory. The export statement in index.js needs to be updated to remove the reference to the deleted function.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot
Copy link
Collaborator

Builds ready [1ce4c35]
📊 Page Load Benchmark Results

Current Commit: 1ce4c35 | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±38ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 714ms (±35ms) 🟢 | historical mean value: 724ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±13ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 38ms 1.01s 1.30s 1.05s 1.30s
domContentLoaded 714ms 35ms 699ms 972ms 731ms 972ms
firstPaint 76ms 13ms 56ms 184ms 88ms 184ms
firstContentfulPaint 76ms 13ms 56ms 184ms 88ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -97.22 KiB (-1.25%)
  • common: -18 Bytes (0%)

@DDDDDanica DDDDDanica force-pushed the refactor/5566-v6 branch 2 times, most recently from e9f5424 to 87347be Compare December 1, 2025 14:25
@metamaskbot
Copy link
Collaborator

Builds ready [87347be]
UI Startup Metrics (1324 ± 104 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13241094159310413961498
load109389313119511651271
domContentLoaded108788513079411571266
domInteractive261681142467
firstPaint51785129541110421206
backgroundConnect23520528816245270
firstReactRender3720187204164
getState4115193254789
initialActions105113
loadScripts8586731082929251020
setupStore1474271531
numNetworkReqs1257821575
BrowserifyPower User HomeuiStartup20251778259122221112519
load1005880148812610011300
domContentLoaded99087014771269841285
domInteractive34162082931101
firstPaint5239914944029431272
backgroundConnect273198661120235569
firstReactRender6544122167099
getState19312771091201267
initialActions104112
loadScripts78467212721247821085
setupStore19107192335
numNetworkReqs104662865597270
WebpackStandard HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
WebpackPower User HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
FirefoxBrowserifyStandard HomeuiStartup12751067177213213551533
load106392015539811191246
domContentLoaded106392015539811181246
domInteractive60301733284122
firstPaint------
backgroundConnect44211322845108
firstReactRender22185252227
getState106698916
initialActions102112
loadScripts103790414408610891182
setupStore106838916
numNetworkReqs1055513652
BrowserifyPower User HomeuiStartup25932054506643426473412
load1203996247423511851608
domContentLoaded1203996247323511851607
domInteractive12137517105115458
firstPaint------
backgroundConnect11931874107130273
firstReactRender6243128146591
getState27077932216335793
initialActions218137
loadScripts1162964235322011521572
setupStore1816926202223694
numNetworkReqs102603076181238
WebpackStandard HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
WebpackPower User HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
📊 Page Load Benchmark Results

Current Commit: 87347be | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±51ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 721ms (±49ms) 🟢 | historical mean value: 725ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±12ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 51ms 1.00s 1.32s 1.05s 1.32s
domContentLoaded 721ms 49ms 695ms 1.00s 736ms 1.00s
firstPaint 76ms 12ms 64ms 180ms 84ms 180ms
firstContentfulPaint 76ms 12ms 64ms 180ms 84ms 180ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 511.72 KiB (10.94%)
  • ui: -95.4 KiB (-1.23%)
  • common: 145.92 KiB (1.65%)

@metamaskbot
Copy link
Collaborator

Builds ready [62cb481]
UI Startup Metrics (1260 ± 110 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12601070172511013271456
load1050870150310211031260
domContentLoaded1044865149610110991251
domInteractive241686142363
firstPaint4678915223839781156
backgroundConnect22319929215230252
firstReactRender3520176233859
getState3914139194578
initialActions109112
loadScripts8276601274968731022
setupStore1373661429
numNetworkReqs1257720573
BrowserifyPower User HomeuiStartup20291713324725821202519
load1010883179613710201315
domContentLoaded997875178813810051308
domInteractive3318126233197
firstPaint5128713283519301071
backgroundConnect263201836122228544
firstReactRender6344123136792
getState18713268158203240
initialActions107112
loadScripts79067515381347981100
setupStore20105282441
numNetworkReqs104632855497269
WebpackStandard HomeuiStartup826703113782850998
load64656990272677802
domContentLoaded64156489571671795
domInteractive241592152271
firstPaint22480903165213652
backgroundConnect1163561328
firstReactRender28195493743
getState261366113148
initialActions103112
loadScripts63756188569669786
setupStore1052541218
numNetworkReqs1257720572
WebpackPower User HomeuiStartup17121344265227418772306
load718594116298742944
domContentLoaded706588115799727938
domInteractive40181793338130
firstPaint323117984220358769
backgroundConnect73868114822517
firstReactRender6949109107786
getState18613069575193219
initialActions104112
loadScripts702586114697725925
setupStore22764122553
numNetworkReqs104652915698270
FirefoxBrowserifyStandard HomeuiStartup13161109186014714031559
load1083931153310711441255
domContentLoaded1083931153310711441255
domInteractive64302193984140
firstPaint------
backgroundConnect45211733051109
firstReactRender23185552335
getState12611614926
initialActions103122
loadScripts105691314809911131230
setupStore11672101031
numNetworkReqs1157116663
BrowserifyPower User HomeuiStartup27161908470755828374175
load12321012281331012241975
domContentLoaded12321012281331012231975
domInteractive1153544998111383
firstPaint------
backgroundConnect130331115136142361
firstReactRender64361482065115
getState28565931219380810
initialActions2132323
loadScripts1189985257827611771876
setupStore1319624152132551
numNetworkReqs101563246481243
WebpackStandard HomeuiStartup14741253204013515671711
load1226104715409512891390
domContentLoaded1226104615409512891390
domInteractive58272803780100
firstPaint------
backgroundConnect47201252552109
firstReactRender26204152836
getState127176171222
initialActions102022
loadScripts1198103214658912591360
setupStore13575121240
numNetworkReqs1156916656
WebpackPower User HomeuiStartup30902000550675232754728
load15451133312346015282728
domContentLoaded15441133312246015282728
domInteractive1113252511099440
firstPaint------
backgroundConnect145291091131151423
firstReactRender68402903172105
getState28388955210382768
initialActions3181926
loadScripts14871107293640614902536
setupStore1337813164154568
numNetworkReqs101622575981241
📊 Page Load Benchmark Results

Current Commit: 62cb481 | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±61ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 727ms (±59ms) 🟢 | historical mean value: 723ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±15ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 61ms 1.01s 1.32s 1.24s 1.32s
domContentLoaded 727ms 59ms 695ms 991ms 920ms 991ms
firstPaint 75ms 15ms 60ms 208ms 84ms 208ms
firstContentfulPaint 75ms 15ms 60ms 208ms 84ms 208ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 511.72 KiB (10.94%)
  • ui: -95.4 KiB (-1.23%)
  • common: 145.92 KiB (1.65%)

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approving component-library and storybook changes on behalf of @MetaMask/design-system-engineers

@metamaskbot
Copy link
Collaborator

Builds ready [b8a0521]
UI Startup Metrics (1221 ± 108 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1221988163310812891428
load102285312739710891220
domContentLoaded101685012649610841213
domInteractive231483142166
firstPaint4398412753748921161
backgroundConnect21519427813220239
firstReactRender3319143203560
getState3617131154157
initialActions105112
loadScripts807650104692873983
setupStore1253351325
numNetworkReqs1257720570
BrowserifyPower User HomeuiStartup20661750254318822042405
load1025891142812010361356
domContentLoaded1011882141912110191349
domInteractive3317105183583
firstPaint5179514303879421324
backgroundConnect256200748106239531
firstReactRender6143114126593
getState204132719102200308
initialActions103112
loadScripts79767612121168031126
setupStore211158102442
numNetworkReqs1557235662206269
WebpackStandard HomeuiStartup809696100171829964
load63356283262669763
domContentLoaded62855682762663759
domInteractive241692152164
firstPaint20786779143181613
backgroundConnect1158291321
firstReactRender2819122123544
getState251373123153
initialActions104112
loadScripts62555181860661750
setupStore1164151219
numNetworkReqs1257620571
WebpackPower User HomeuiStartup15651282223820615972054
load680586124596687881
domContentLoaded669578123796676876
domInteractive3417146253495
firstPaint287851246221247866
backgroundConnect54965312720532
firstReactRender6144127116579
getState17413322819184210
initialActions105112
loadScripts666576122394674866
setupStore22967122648
numNetworkReqs1606540568212295
FirefoxBrowserifyStandard HomeuiStartup13191096175714914011652
load107893013509211451239
domContentLoaded107793013509211451239
domInteractive60311733583134
firstPaint------
backgroundConnect4423159274698
firstReactRender23195562436
getState176195291149
initialActions102122
loadScripts104990913248211061193
setupStore12689121029
numNetworkReqs1256917762
BrowserifyPower User HomeuiStartup27172113465058527794366
load1223977275030812271545
domContentLoaded1223977275030812261545
domInteractive1143345691111356
firstPaint------
backgroundConnect174301466233141805
firstReactRender64382092565103
getState29262955232386834
initialActions3045527
loadScripts1166959259225711621524
setupStore161111027198162624
numNetworkReqs91592604783232
WebpackStandard HomeuiStartup15561280232417416251857
load12741099157710613411489
domContentLoaded12741094157710613391489
domInteractive54231613075111
firstPaint------
backgroundConnect53221783063118
firstReactRender28208392939
getState13682101432
initialActions102112
loadScripts1245108615489913171436
setupStore186257341241
numNetworkReqs1256916761
WebpackPower User HomeuiStartup29862021603483028864769
load15701144430357115622789
domContentLoaded15691143430257115622789
domInteractive142353054304116317
firstPaint------
backgroundConnect198231547279160992
firstReactRender62362022861121
getState25654948227247790
initialActions2034323
loadScripts14831126427850214982602
setupStore1276682168124567
numNetworkReqs906118534109180
📊 Page Load Benchmark Results

Current Commit: b8a0521 | Date: 12/1/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±62ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 724ms (±60ms) 🟢 | historical mean value: 732ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±10ms) 🟢 | historical mean value: 80ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 62ms 998ms 1.31s 1.24s 1.31s
domContentLoaded 724ms 60ms 690ms 999ms 921ms 999ms
firstPaint 75ms 10ms 56ms 152ms 84ms 152ms
firstContentfulPaint 75ms 10ms 56ms 152ms 84ms 152ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -96.22 KiB (-1.24%)
  • common: -18 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [c50c837]
UI Startup Metrics (1290 ± 116 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12901027159511613811455
load1071872135810611491238
domContentLoaded1065870135210511441230
domInteractive2617122172371
firstPaint550100133542610471232
backgroundConnect22419925611231243
firstReactRender3821209294289
getState43171442450109
initialActions105113
loadScripts84767311411039281016
setupStore1463871632
numNetworkReqs1257720574
BrowserifyPower User HomeuiStartup19621668259317120582347
load97285815811209621295
domContentLoaded95885215571209511282
domInteractive3117147203279
firstPaint64810715933859461239
backgroundConnect260189580111230543
firstReactRender63431261667105
getState19014227729208241
initialActions1010112
loadScripts75866513311187501084
setupStore17105571926
numNetworkReqs94662452797157
WebpackStandard HomeuiStartup787653109381828926
load62253294578664780
domContentLoaded61752493777659774
domInteractive231475142163
firstPaint22674804161206653
backgroundConnect1167071420
firstReactRender26194473240
getState231169103041
initialActions103112
loadScripts61452093576657766
setupStore951931015
numNetworkReqs1257520572
WebpackPower User HomeuiStartup15751275210619516342012
load683586117897688884
domContentLoaded672580117097674877
domInteractive3518154253598
firstPaint2891181176216274843
backgroundConnect48756011322449
firstReactRender60438996580
getState18814165570187222
initialActions104112
loadScripts669578115895672867
setupStore21758122450
numNetworkReqs1597029960217287
FirefoxBrowserifyStandard HomeuiStartup12441058193816013231553
load102789113199910651284
domContentLoaded102789113199910641284
domInteractive52301982876102
firstPaint------
backgroundConnect46212754146116
firstReactRender21183642233
getState13614217941
initialActions102112
loadScripts99987512928410391202
setupStore155262301036
numNetworkReqs1156515754
BrowserifyPower User HomeuiStartup27522049539774927594788
load1295958303144112842703
domContentLoaded1294958303144112842703
domInteractive1213047291123359
firstPaint------
backgroundConnect1982724463471401096
firstReactRender61391491863104
getState25167834201247763
initialActions3142623
loadScripts1212940285035312392430
setupStore1606873212169728
numNetworkReqs92632314192203
WebpackStandard HomeuiStartup14711263211914915591784
load12261075151410512911452
domContentLoaded12251075151410512911452
domInteractive51291152675104
firstPaint------
backgroundConnect4422180254394
firstReactRender26204552835
getState1065861118
initialActions103122
loadScripts1199106114879912691394
setupStore166152241360
numNetworkReqs1257017763
WebpackPower User HomeuiStartup29532129513460829704499
load14751193274334114602563
domContentLoaded14751192274134114602563
domInteractive12433932127113411
firstPaint------
backgroundConnect192311165230184823
firstReactRender67441701969111
getState24985793186281744
initialActions3155537
loadScripts14061174254325814182140
setupStore1529766198122664
numNetworkReqs92583125281232
📊 Page Load Benchmark Results

Current Commit: c50c837 | Date: 12/2/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±62ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 727ms (±59ms) 🟢 | historical mean value: 732ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±12ms) 🟢 | historical mean value: 81ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 62ms 1.01s 1.32s 1.25s 1.32s
domContentLoaded 727ms 59ms 699ms 993ms 925ms 993ms
firstPaint 77ms 12ms 60ms 184ms 84ms 184ms
firstContentfulPaint 77ms 12ms 60ms 184ms 84ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: -98.44 KiB (-1.27%)
  • common: -18 Bytes (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants