Skip to content

Commit

Permalink
enable prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinheldy committed Jul 4, 2024
1 parent d2165c7 commit 8a7b832
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 36 deletions.
4 changes: 4 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ export default defineConfig({
server: {
port: 3000,
},
prefetch: {
prefetchAll: true,
defaultStrategy: 'viewport',
},
})
5 changes: 5 additions & 0 deletions docs/assets/customize.ChsKtbAZ.css

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions docs/assets/customize.hSYxSEHR.css

This file was deleted.

1 change: 1 addition & 0 deletions docs/assets/page.D3gCUAtq.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/customize.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
localStorage.setItem('theme', theme)
}
setTheme(storedTheme)
</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">
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>
</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">
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>
const switchTheme = document.getElementById('switchTheme')
switchTheme.checked = storedTheme === 'dark'
switchTheme.addEventListener('change', function () {
Expand Down
Loading

0 comments on commit 8a7b832

Please sign in to comment.