Skip to content

Commit

Permalink
perf: load sw immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
okikio committed Oct 3, 2021
1 parent 72c99d2 commit 0968b21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ts/critical.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ window.addEventListener("load", () => {
}
});

window.addEventListener("load", () => {
wb.register();
});
// window.addEventListener("load", () => { });
wb.register();
}
})();

0 comments on commit 0968b21

Please sign in to comment.