Id like to include some preconnect resource hints on my site so that browsers can (for example) connect to the jQuery CDN before they actually see the script tag that invokes the CDN. Im not sure whether I should include the crossorigin attribute or what its value should be. The spec says, in part,To initiate a preconnect, the user agent must run these steps:[]Let corsAttributeState be the current state of the element's crossorigin content attribute.Let credentials be a boolean value set to true.If corsAttributeState is Anonymous and origin is not equal to current Document's origin, set credentials to false.Attempt to obtain connection with origin and credentials.I dont know how to interpret this algorithm. If Im preconnecting to a CDN, which will let anyone download its content without any sort of credentials, what value should I use for the crossorigin attribute?
When should I use the crossorigin attribute on a preconnect ?
html