Skip to content

Support for preconnect link relationship for Google Fonts #43

@ryanbalsdon

Description

@ryanbalsdon

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:

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions