Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
</head>
<body>
Speculation rules prefetch
<script>
const target = new URLSearchParams(location.search).get("target");
const script = document.createElement("script");
script.type = "speculationrules";
script.textContent = JSON.stringify({
prefetch: [{ source: "list", urls: [target], eagerness: "immediate" }],
});
document.head.appendChild(script);
</script>
</body>
</html>