Skip to content

Adding display=swap to GoogleFont in react-typography #267

@emanueleperuffo

Description

@emanueleperuffo

Hi and sorry for not opening a PR about this, but I don't know the consequences of changing code here (Gatsby plugin etc...).

My Lighthouse is telling me I should improve the way my fonts are loading. In fact I have some google fonts missing the display=swap query parameter. Have you ever thought of including it? Maybe as a prop of GoogleFont in react-typography and an option in the Gatsby plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions