Skip to content

Correct preload of fonts/styles #2559

Closed
@zverexe

Description

@zverexe

I have such imports in my /packs/client.js

import (/* webpackPreload: true */ 'bootstrap/dist/css/bootstrap.css');
import (/* webpackPreload: true */ '@fortawesome/fontawesome-pro/css/all.css');

I added webpackPreload: true as was advised here #1874 (comment) but it doesn't add any preload attribute and I still see warnings from Lighthouse

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportQuestions or unspecific problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions