Skip to content

How to add rel=preload to improve lighthouse performance score #52

Open
@hjujah

Description

@hjujah

I keep having this error in the lighthouse audits and I can't find a workaround for it:
Consider using to prioritize fetching resources that are currently requested later in page load.

Its dramatically decreasing the performance score, so i am wondering if there is a way to add the preload attribute somehow?

Here is what I have in my nuxt config atm:

webfontloader: {
      custom: {
          families: ['GarnettMedium-Regular', 'Staff-Medium', 'Staff-Regular'],
          urls: ['/fonts.css']
      }
 }

Any help would be highly appreciated! Thanks!

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