MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.66k stars 4.78k forks source link

[Bug]: MetaMask popup very slow to appear (20+ seconds) #23544

Open william2313 opened 3 months ago

william2313 commented 3 months ago

Describe the bug

Whenever I want to interact with a smart contract from a dapp, the MetaMask popup takes more than 20 seconds to load. This is not a recent bug, it has been occurring for at least the last 2 years in Chrome, Edge and Brave. I have taken the following steps to try to fix this:

  1. removed all unneeded accounts
  2. removed any unneeded (test) networks
  3. disabled all other browser extensions
  4. cleared activity tab data
  5. uninstalled MetaMask extension, cleared browser cache, restarted browser and re-installed MetaMask (and imported my existing account with the secret recovery phrase)

All this had no noticeable effect. To be clear, the delay occurs on EVERY kind of smart contract transaction on all chains. (I use dozens of different well known dapps on several well known chains). In fact, I have not seen the popup appearing without delay a single time during the last 2 years.

Expected behavior

Loading the MetaMask popup should take no more than 5 seconds for a reasonable user experience.

Screenshots/Recordings

No response

Steps to reproduce

The bug description says it all.

Error messages or log output

No response

Version

11.12.1

Build type

None

Browser

Chrome

Operating system

Windows

Hardware wallet

No response

Additional context

No response

Severity

No response

Fredakikay32 commented 3 months ago

@william2313

Fredakikay32 commented 3 months ago

logs_21828966765.zip

danjm commented 3 months ago

@william2313 Does the bug occur when creating a non-smart contract transaction from a dapp (e.g. just a simple eth send) ?

william2313 commented 3 months ago

@danjm No, because that's initiated with the send button from the MetaMask UI, so the popup doesn't need to load. The send screen appears within 3 seconds.

danjm commented 3 months ago

Could you test the "Send Eth" button on our test dapp? https://metamask.github.io/test-dapp/

You don't need to confirm the transaction, just click "Send Eth" and see how long the popup takes to appear. You could do it on a test net if you wanted.

william2313 commented 3 months ago

@danjm Ok, I did that. "Send legacy transaction" took 20 seconds for the popup to appear (fully populated). "Send EIP 1559 tx" took 25 seconds. This was on mainnet.

Do you or anybody know if I am the only one with this problem or are others having this problem too?

github-actions[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.