Skip to content

remove the version-based condition on the loading of SVG support stylesheet#264

Merged
mlwilkerson merged 2 commits intomainfrom
fix-css-loading
Sep 24, 2025
Merged

remove the version-based condition on the loading of SVG support stylesheet#264
mlwilkerson merged 2 commits intomainfrom
fix-css-loading

Conversation

@mlwilkerson
Copy link
Copy Markdown
Member

closes #263

This PR reverts a prior change to use svg.css when Font Awesome 7 is active. It takes us back to always using svg-with-js.css, which includes the animations CSS.

Upside: everything that's needed is available in svg-with-js.css

Downside: more than is needed is included in svg-with-js.css. It's about twice the size of svg.css. And some of that will be loaded twice, because the kit loader will load some of that same content, whether it's a webfont kit or SVG kit.

However, for now, it's better to load more than necessary and have all of the feature support, than to load svg.css to minimize the number of bytes loaded and break animations.

@mlwilkerson mlwilkerson merged commit 13fe980 into main Sep 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

icon CSS animations do not work with only svg.css is loaded

1 participant