diff --git a/frontend/src/routes/(root)/+layout.svelte b/frontend/src/routes/(root)/+layout.svelte index 56b8806578..ca03f417d8 100644 --- a/frontend/src/routes/(root)/+layout.svelte +++ b/frontend/src/routes/(root)/+layout.svelte @@ -36,6 +36,8 @@ 'Importing a module script failed', 'Unable to preload CSS' ] + // One failed component rejects once per chunk and stylesheet it needed. + let chunkLoadToastShown = false const monacoEditorUnhandledErrors = [ 'Model not found', @@ -217,6 +219,8 @@ // a component loaded on demand would otherwise silently never appear. if (chunkLoadErrors.some((m) => message.startsWith(m))) { console.warn(message) + if (chunkLoadToastShown) return + chunkLoadToastShown = true sendUserToast( 'Part of the page failed to load, Windmill may have been updated', true,