pub async fn discover_script_graph(
policy: &Policy,
html: &str,
page: &Url,
budget: ScriptBudget,
) -> Result<ScriptGraph>Expand description
The root HTML is supplied by the caller, with its final URL. Same-origin checks also apply before redirect sends; all fetches use the normal policy.