SmartPrefetch: a JavaScript library that makes website navigation feel instant by intelligently prefetching pages before users click.
Key features:
• Uses Speculation Rules API with automatic fallback to link prefetch
• Smart hover detection with 65ms delay to prevent wasteful prefetches
• Automatic service worker detection to avoid 503 errors
• Network-aware (respects Save Data mode and slow connections)
• Only 9KB with zero dependencies
Perfect for e-commerce sites, documentation, blogs, and SPAs where navigation speed impacts user experience.
Top comments (0)