You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Fonts asks you to include two preconnect links when using one of their fonts. The link tags when copied from the Google Fonts site look like this:
The Mozilla docs have a much larger list (some of these are not supported across both link and anchor elements though):
alternate, author, bookmark, canonical, dns, external, help, icon, license, manifest, me, modulepreload, next, nofollow, noopener, noreferrer, opener, pingback, preconnect, prefetch, preload, prerender, prev, search, stylesheet, tag
For context, here is the list currently supported (this does not distinguish between links and anchors):
alternate, author, bookmark, canonical, external, help, icon, license, manifest, modulepreload, next, nofollow, noopener, noreferrer, pingback, prefetch, preload, prev, search, shortlink, stylesheet, tag
Other than dns vs dns-prefetch, the Mozilla docs are a superset so probably are including historical or deprecated tokens? Looks like there are only about 4 currently missing in LinkType. I don't mind adding them in a small PR but would it be better to split these tokens into two separate lists (one for links and one for anchors)? Splitting into two lists might not be a backward-compatible change if anyone is currently using LinkType inside their anchor elements.
Google Fonts asks you to include two preconnect links when using one of their fonts. The link tags when copied from the Google Fonts site look like this:
The rel attribute of links is parsed with a LinkType enum that is missing a few valid values. This LinkType enum is also used for a tags so a straight copy/paste into the enum might not be enough because not all types are supported in both tags!
The text was updated successfully, but these errors were encountered: