1. 17
    Pre-emptively Load Links with Remix prefetch
    2m 24s

Pre-emptively Load Links with Remix prefetch

InstructorKent C. Dodds

Share this video with your friends

Send Tweet

When trying to load data on slow networks, it can get aggravating for your users. On our posts page, we have several links to each of our posts. Because Remix knows all of the CSS, JavaScript, and data that is needed by just looking at the URL, we can tell Remix to start fetching that when someone hovers over one of the links.

Link, from Remix, has a special prop on it called prefetch. It has three different options on it. We are going to utilize intent for when the user shows intent to navigate to a page.