fix: navigation blink root-caused — defer search-client.js (was parser-blocking mid-body), npm run demo serves the production build through the tunnel; DESIGN.md documents the VT removal + font-swap decision

This commit is contained in:
ctao
2026-07-25 17:48:48 +02:00
parent c9161af655
commit 1ef2cab89e
4 changed files with 41 additions and 5 deletions
+3 -2
View File
@@ -24,8 +24,9 @@ import Base from '../layouts/Base.astro';
</section>
</Base>
{/* search-client.js is loaded once by the Base layout (header search) */}
<script is:inline>
{/* search-client.js is loaded once (deferred) by the Base layout; this inline
module runs after it in the shared after-parse queue — order guaranteed. */}
<script is:inline type="module">
const run = newsSearch({ input: 'q', list: 'search-results', status: 'search-status', limit: 20, hint: 'Type at least 2 characters.' });
// Support /search?q=… deep links (hero search form, footer, bookmarks)
const q0 = new URLSearchParams(location.search).get('q');