diff --git a/src/main.tsx b/src/main.tsx
index 9951a45..97ca43b 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -4,12 +4,17 @@ import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import './index.css';
-const rootElement = document.getElementById("root");
+// Make sure we wait for DOM content to be loaded
+document.addEventListener('DOMContentLoaded', () => {
+ const rootElement = document.getElementById("root");
-if (!rootElement) {
- throw new Error("Root element not found!");
-}
+ if (!rootElement) {
+ throw new Error("Root element not found!");
+ }
-createRoot(rootElement).render(
-
-);
+ createRoot(rootElement).render(
+
+
+
+ );
+});