
slightlyoff@toot.cafe ("Alex Russell") wrote:
This isn't a particularly interesting web component, and there are bugs aplenty, but the thing that might be helpful for others is the approach to using fonts for icon glyphs. This can be significantly faster than a diarrhea of SVG documents, and this system uses font subsetting to get a tiny (1.8K, 2.3 unzipped) base64 of *just* the fontawesome glyphs needed to for sharing:
https://github.com/slightlyoff/share-button/blob/main/subset.sh#L16