v152 · interactive demo
Heuristic Builder
Build the exact moderate_viewport_heuristics object and a real moderate prefetch rule.
Experimental syntax. Script insertion proves the JSON was installed in the document, not that this browser acted on it.
code
<script type="speculationrules">
{
"moderate_viewport_heuristics": {
"distance_from_pointer_down": [-0.5, 0.2],
"largest_anchor_threshold": 0.1,
"delay": 200
},
"prefetch": [{"source":"document","where":{"href_matches":"/v152/*"},"eagerness":"moderate"}]
}
</script>