Runtime stability: navigation reset + nested script handling
Small but important runtime improvements focused on navigation reliability and consistent script execution.
- Navigation now reloads from a fresh source: page navigation resets the preview instead of dynamically rebuilding the same document, fixing issues where global variables could leak between pages.
- Nested scripts are now reliably executed: scripts placed inside sections or other containers are detected and run correctly, matching real browser behavior.
- Preview URL now stays in sync: the preview window’s address/search bar updates as you navigate between pages.