demo ยท v135

Pre-rendering for links that open in a new tab

Before the target_hint field, all speculation-rules prerenders were attached to the current browsing context — meaning if the user middle-clicked or used target="_blank", the prerender was discarded and the new window opened from scratch. Pages that route most traffic to a new tab (review aggregators, link previews) couldn't speed those up. Adding "target_hint": "_blank" lets the browser prepare a separate prerendered window the new tab can adopt.

speculation rules: ?

without target_hint

{"prerender":[{"urls":["/article/42"]}]}

with target_hint

{"prerender":[{
  "urls":["/article/42"],
  "target_hint":"_blank"
}]}

Try the links — the second one would adopt a pre-rendered window when the rules are honoured:

_self — uses default prerender _blank — needs target_hint to benefit

see also

scenario focus

Select a scenario to focus its rendered example and summary.