Skip to content

Inline emoji (FAIcon) size is changing during page loading, breaks links with anchors #11528

@Salamandar

Description

@Salamandar

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

See the title. FontAwesome icons are huge at first during page loading and then the proper size.

Reproducible demo

https://codesandbox.io/p/devbox/romantic-wildflower-tlnm8f

Steps to reproduce

  • Add FontAwesome
  • Use an FAIcon inline
  • Load the page

Expected behavior

Size being fine during page loading.

The CSS being inline at the beginning of the html page, I would expect this to be true.

Actual behavior

Icon changes size during loading

Your environment

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executionclosed: wontfixA fix will bring significant overhead, or is out of scope (for feature requests)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions