1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-01 09:55:29 -04:00

experimental prefetching on hover for common links

This commit is contained in:
2025-04-15 09:30:20 -04:00
parent fe7076f495
commit cfe77f98d6
10 changed files with 50 additions and 37 deletions
+1
View File
@@ -4,6 +4,7 @@ import CountUp from "../../../components/CountUp";
import redis from "../../../lib/redis";
const HitCounter = async ({ slug }: { slug: string }) => {
// ensure this component isn't triggered by prerenders and/or preloads
await connection();
try {
+1 -1
View File
@@ -125,7 +125,7 @@ const Page = async ({ params }: { params: Promise<{ slug: string }> }) => {
className={styles.metaItem}
style={{
// fix potential layout shift when number of hits loads
minWidth: "7em",
minWidth: "6em",
marginRight: 0,
}}
>