Before the click
1 min read
While building my personal website, I wanted to make moving between pages feel smoother. Alongside the animations, I looked at when the browser starts loading the next page.
Normally, the browser starts loading a page when we click a link. On desktop, though, we move the cursor over the link before clicking. There’s a brief window between those two actions that we can put to use.
This approach is called prefetching. It starts loading a page the user is likely to visit before they click.
On my site, I chose to prefetch only internal page links and only in response to user interaction. My aim was to reduce the wait between pages while limiting unnecessary data use.
What I like about this approach is that it adds nothing to the interface. The design looks the same, but the way it feels to use changes.
Sometimes improving an interface is as simple as shortening the wait between two actions.