Reference

preconnect

Inserts a preconnect link for the provided origin if it is not already present.

Signature

function preconnect(href: string, options: PreconnectOptions): void