return } window.setTimeout(checkForWeb3, 100) } document.addEventListener('load', checkForWeb3, false) Do this for now, but DApp browsers in the future may dispatch an event on the document object like “web3load” after user approves web 3 injection.
into signing anything, including Ethereum transactions! Updated Ethereum JSON-RPC spec requires adding a prefix, but MetaMask is currently preserving old implementation to prevent breaking legacy DApps. In near future, MetaMask may remove support for eth_sign altogether. https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign