Skip to content

Commit 8a7b832

Browse files
committed
enable prefetch
1 parent d2165c7 commit 8a7b832

File tree

9 files changed

+43
-36
lines changed

9 files changed

+43
-36
lines changed

astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ export default defineConfig({
1515
server: {
1616
port: 3000,
1717
},
18+
prefetch: {
19+
prefetchAll: true,
20+
defaultStrategy: 'viewport',
21+
},
1822
})

docs/assets/customize.ChsKtbAZ.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/customize.hSYxSEHR.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/assets/page.D3gCUAtq.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/customize.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
localStorage.setItem('theme', theme)
66
}
77
setTheme(storedTheme)
8-
</script><link rel="stylesheet" href="/assets/customize.hSYxSEHR.css"></head> <body> <!-- Header --> <div class="sticky-top"> <nav class="navbar navbar-expand bg-body-tertiary" data-bs-theme="dark"> <div class="container"> <a href="/" class="navbar-brand d-flex align-items-center gap-2"> <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M3 2v4.586l7 7L14.586 9l-7-7H3zM2 2a1 1 0 0 1 1-1h4.586a1 1 0 0 1 .707.293l7 7a1 1 0 0 1 0 1.414l-4.586 4.586a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 2 6.586V2z"></path><path d="M5.5 5a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1zm0 1a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM1 7.086a1 1 0 0 0 .293.707L8.75 15.25l-.043.043a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 0 7.586V3a1 1 0 0 1 1-1v5.086z"></path></svg> <span>use-bootstrap-tag</span> <span class="badge text-bg-light">
9-
v2.2.1 </span> </a> <div class="ms-auto navbar-nav align-items-center gap-3"> <div class="form-check form-switch navbar-text m-0"> <input class="form-check-input" type="checkbox" role="switch" id="switchTheme"> <label class="form-check-label small" for="switchTheme">Dark Mode</label> <script>
8+
</script><link rel="stylesheet" href="/assets/customize.ChsKtbAZ.css"><script type="module" src="/assets/page.D3gCUAtq.js"></script></head> <body> <!-- Header --> <div class="sticky-top"> <nav class="navbar navbar-expand bg-body-tertiary" data-bs-theme="dark"> <div class="container"> <a href="/" class="navbar-brand d-flex align-items-center gap-2"> <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M3 2v4.586l7 7L14.586 9l-7-7H3zM2 2a1 1 0 0 1 1-1h4.586a1 1 0 0 1 .707.293l7 7a1 1 0 0 1 0 1.414l-4.586 4.586a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 2 6.586V2z"></path><path d="M5.5 5a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1zm0 1a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM1 7.086a1 1 0 0 0 .293.707L8.75 15.25l-.043.043a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 0 7.586V3a1 1 0 0 1 1-1v5.086z"></path></svg> <span>use-bootstrap-tag</span> <span class="badge text-bg-light">
9+
v2.2.2 </span> </a> <div class="ms-auto navbar-nav align-items-center gap-3"> <div class="form-check form-switch navbar-text m-0"> <input class="form-check-input" type="checkbox" role="switch" id="switchTheme"> <label class="form-check-label small" for="switchTheme">Dark Mode</label> <script>
1010
const switchTheme = document.getElementById('switchTheme')
1111
switchTheme.checked = storedTheme === 'dark'
1212
switchTheme.addEventListener('change', function () {

0 commit comments

Comments
 (0)