chromium/components/test/data/subresource_filter/frame_with_multiple_fetches.html

<script>
function fetchResources(wait_for_both) {
  included_script_loaded = false;
  included_allowed_script_loaded = false;
  fetch("/subresource_filter/included_script.js").then(() => {
    included_script_loaded = true;
    if (wait_for_both && !included_allowed_script_loaded)
      return
    window.domAutomationController.send("included_script.js");
  });
  fetch("/subresource_filter/included_allowed_script.js").then(() => {
    included_allowed_script_loaded = true;
    if (wait_for_both && !included_script_loaded)
      return
    window.domAutomationController.send("included_allowed_script.js");
  });
}
</script>