chromium/content/test/data/prerender/page_with_trigger_function.html

<!DOCTYPE html>
<html>
<head>
<script>
function add_speculation_rules(url) {
  const script = document.createElement('script');
  script.type = 'speculationrules';
  script.text = `{"prerender": [{"source": "list", "urls": ["${url}"] }] }`;
  document.head.appendChild(script);
}
</script>
</head>
<body></body>
</html>