// Loads the Monaco editor (shipped inside the BlazorMonaco package) on first use, so only the // JSON editor page pays for it. BlazorMonaco normally expects three script tags in App.razor; // this loads the same three in the same order. let loading; // Enhanced navigation (moving between pages without a full reload) syncs
with the // server-rendered page and so removes the stylesheets Monaco added at runtime. Monaco itself stays // loaded in the window, so remember those elements and put them back before the next editor is // created. Monaco keeps references to its