ResourceHints final class
Minn\Front\ResourceHints · public/minn/src/Minn/Front/ResourceHints.php · 56 lines
The resource hint links wp_head prints (wp_resource_hints): each relation (dns-prefetch, preconnect, prefetch, prerender) handed to the filter with what the engine found, its entries printed once each. A plain address prints rel first; an entry given as attributes prints its href, the attributes the reference keeps (as, crossorigin, pr, type; a bare word for a numeric key) and rel last. dns-prefetch names only the host, preconnect the scheme and host, the others the whole address (probe media-template-doubts).
Constants and properties
| private | KEPT = array ( 0 => 'as', 1 => 'crossorigin', 2 => 'href', 3 => 'pr', 4 => 'type', ) |
Public
| static | render(array $dnsPrefetch, Closure $filter): string# | The links, one a line.
|
Internals 2
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
Nothing matches.