Browser & Web Performance · Middle · Question 37 of 75

What does the Speculation Rules API allow?

<script type="speculationrules">
{ "prerender": [{ "where": { "href_matches": "/product/*" }, "eagerness": "moderate" }] }
</script>

Explanation

Prerendering loads and renders the page in the background. eagerness controls when, e.g. on hover for moderate.

Further reading

Problem with a question

Browser & Web Performance · Middle · question 37

Test yourself

Take the Browser & Web Performance · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz