optimise (lighthouse): apply optimisations provided by the lighthouse tool

This commit is contained in:
Mickael Kerjean
2019-08-03 12:13:47 +02:00
parent f77fd53536
commit 71e3d6494a
6 changed files with 9 additions and 13 deletions

View File

@ -13,7 +13,7 @@ window.addEventListener("DOMContentLoaded", () => {
const $loader = document.querySelector("#n-lder");
function render(){
ReactDOM.render(<Router/>, document.getElementById("main"));
ReactDOM.render(<Router/>, document.querySelector("div[role='main']"));
return Promise.resolve();
};
function waitFor(n){