quarkusio / extensions

The source of https://quarkus.io/extensions
Apache License 2.0
6 stars 4 forks source link

Allow css for svg fontawesome to be inlined to fix huge chevron flash #1086

Closed holly-cummins closed 1 month ago

holly-cummins commented 1 month ago

Fixes #999

https://medium.com/@fabianterh/fixing-flashing-huge-font-awesome-icons-on-a-gatsby-static-site-787e1cfb3a18 has a discussion of this, and https://github.com/FortAwesome/react-fontawesome/issues/134 has discussion specific to the react-fontawesome plugin we are using.

https://github.com/FortAwesome/react-fontawesome/issues/134#issuecomment-392078079 seems to be the most helpful comment.

Basically, the problem is that gatsby doesn't know about the css, so fetches it dynamically at load time, by which time a giant chevron has already been rendered.

github-actions[bot] commented 1 month ago

🙈 The PR is closed and the preview is expired.