The download size of Google Material is large: 3.3 MB with the defaults:
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
I have followed the advice to download only a certain variant:
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
and now the size is 242kB.
But since I am only using 2 of the symbols, is there any easy way (best not to involve storing the font on my server) to subset it? Thanks!
You can also try to use the icons ids rather than the human readable names, for some icons their names overlap with other icons and if you use multiple icons you might end up with downloading more icons that the ones you need
e.g. something like this: