Skip to content

Google pagespeed error - Ensure text remains visible during webfont load #469

@k-prashant

Description

@k-prashant

Describe the bug
When we run this package on Google pagespeed, an error related to font is raised.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://pagespeed.web.dev/'
  2. Enter this package demo url - https://react-multi-carousel.vercel.app/
  3. Click on analyse.
  4. After a while a result will be shown, Scroll down or search for "Ensure text remains visible during webfont load"
  5. On expanding further, it will show error related to revicons.woff file

Solution
In src/assets/styles.css need to add font-display inside font-face, as given in MDN docs (https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display)

Screenshots
Image

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