Effective use of prerender and prefetch

Use prerender and prefetch to load pages quickly and keep your website or app working smoothly.

In Prerender and prefetch support, you saw how (and when) to use prerender and prefetch. There are a few more things you can do to keep things moving smoothly:

  • Design pages so they don't include features that pause or cancel the prerendering process. If you need such a feature, put it as late in the loading process as possible. This reduces the number of requests remaining after the page is displayed.

  • Due to network prioritization, background operations are given a lower priority than foreground operations. Add code to verify that certain operations have finished.

  • Make sure you're following effective practices for conditional requests and cache header control.

Prerender and prefetch support