diff --git a/webapp/src/app.tsx b/webapp/src/app.tsx index 1d829d6088bb..09eaf2a1370a 100644 --- a/webapp/src/app.tsx +++ b/webapp/src/app.tsx @@ -5924,11 +5924,12 @@ document.addEventListener("DOMContentLoaded", async () => { pxt.blocks.showBlockIdInTooltip = true; } - initGitHubDb(); pxt.perf.measureStart("setAppTarget"); pkg.setupAppTarget((window as any).pxtTargetBundle); + initGitHubDb(); + // DO NOT put any async code before this line! The serviceworker must be initialized before // the window load event fires appcache.init(() => theEditor.reloadEditor());