Next's Link bundle size too heavy (70.53kb)

So, I noticed that importing Next's Link component bundle size is pretty heavy (70.53kb), so I looked for an alternative. I found this link that talks about replacing React with Preact, but that sounds like an impactful change. Are there trade offs? Has anyone ever tried it?
3 Replies
deforestor
deforestorOP2y ago
I also thought of just using useRouter, but that's about 5kb smaller, not much of a change
Vincent Udén
Vincent Udén2y ago
Why do you think using Preact would help you with reducing the Next Link component bundle?
deforestor
deforestorOP2y ago
Huh, I assumed it would load Next modules on the go. I read it in an article But I just decided not to care about it, Link is important and my pages have been more optimized so I don't need to worry much I'll keep it open in case anyone has a solution to it though
Want results from more Discord servers?
Add your server