You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I throttle network speed and record performance in Chrome, I notice that blueprint-icons.ttf is the last resource requested over the network, delaying the Load event a little while longer:
As far as I can tell, icons are already being rendered as SVGs before this request is even made, and I'm not certain if this file ever gets used.
Could anyone help me understand – what is the purpose of this file? Is it possible to configure @blueprintjs/icons to prevent the file from being requested? Thanks!
The text was updated successfully, but these errors were encountered:
Is it possible to configure @blueprintjs/icons to prevent the file from being requested?
Yes, it should be possible to avoid the font imports by omitting blueprint-icons.css from your bundle. You will notice that this file only imports font files, so if you are not using any of the icon font APIs, you can remove any import of it:
Environment
Question
I'm using
@blueprintjs/icons
in a Vite project (yarn create vite repro-app --template react-swc-ts
) following the static imports method, e.g.:When I throttle network speed and record performance in Chrome, I notice that
blueprint-icons.ttf
is the last resource requested over the network, delaying theLoad
event a little while longer:As far as I can tell, icons are already being rendered as SVGs before this request is even made, and I'm not certain if this file ever gets used.
Could anyone help me understand – what is the purpose of this file? Is it possible to configure
@blueprintjs/icons
to prevent the file from being requested? Thanks!The text was updated successfully, but these errors were encountered: