diff --git a/resources/views/partials/scripts.blade.php b/resources/views/partials/scripts.blade.php index fb4c44328b..5455a6bd0c 100644 --- a/resources/views/partials/scripts.blade.php +++ b/resources/views/partials/scripts.blade.php @@ -17,8 +17,10 @@ +])); {{-- Deferred to allow Vite modules to load first --}} - +window.addEventListener('DOMContentLoaded', () => { + Statamic.config(StatamicConfig); Statamic.start(); +}); +