Preload Key Requests

What does Preload Key Requests mean?

According to PageSpeed Insights, the assets that are loaded from another file and do not contain the attribute rel=”preload” will be flagged by this recommendation and increase the final page load time. The most common are font files called from stylesheets files. Usually these fonts will be discovered by the browser later in the process - rel=”preload” tells the browser to start downloading the file sooner.

How WP Rocket can help

With a feature called Preload Fonts which you can find under Dashboard → Settings → WP Rocket → Preload →  Preload Fonts

How to preload a font?

Preloading a font using our feature is basically a copy and paste process:

  1. Find and identify the PageSpeed Recommendation “Preload Key Requests”

    Make sure that the file flagged is a font with extensions otf, ttf, svg, woff, woff2.

  2. Check if it’s coming from your domain (WP Rocket can’t preload external files coming from other domains).
  3. Right-click on each font and copy this file address.
  4. Paste it in the Fonts to preload field.
  5. Click the “save changes” button.

You should have something like:

How can WP Rocket help if it’s a CSS file?

Load CSS Asynchronously and Remove Unused CSS features will automatically add preload to CSS files.

If that option is activated and a CSS file is still being flagged it most likely means that it has been loaded in an unexpected way, for example by a JavaScript file, so it won’t be processed by WP Rocket. 

In that case you may add the preload directive manually:

  1. Install the Insert Headers and Footers plugin
  2. Add the following code to the head section, replacing the example URL with the one specified by Google:

    <link rel="preload" as="style" href="">
  3. Clear the WP Rocket cache
  4. If you are also using Minify/Combine CSS, exclude the file from that option.

Useful Links

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.