diff --git a/src/compiler/models_impl.rs b/src/compiler/models_impl.rs index ef93326..d306c61 100644 --- a/src/compiler/models_impl.rs +++ b/src/compiler/models_impl.rs @@ -25,10 +25,17 @@ impl Project { window.define = tempDefine; {pages_script} + + const domReadyEvent = new Event('DOMContentLoaded', { + bubbles: true, + cancelable: true, + }); + + document.dispatchEvent(domReadyEvent); + window.dispatchEvent(domReadyEvent); }; document.head.appendChild(script); - })() "# }; let mut script = String::new();