diff --git a/webapp/src/app.tsx b/webapp/src/app.tsx index eab841f53d32..6c0f5599543b 100644 --- a/webapp/src/app.tsx +++ b/webapp/src/app.tsx @@ -5963,11 +5963,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());