Elektrine lite

← Feed

@fla@mastodon.social

Post #1103731

2026-03-23 19:10 UTC

So, call me a nerd, but I am rebuilding my personal website and wanted to use the Montserrat font. But the woff2 file is ~ 130kB. And I need the normal, italic, bold and bold-italic files. That means more than 500kB on my home page just for fonts. Ain't gonna happen. So I just launched for the first time the nice free software FontForge and removed all the characters which are not English nor French, and we are now down to 25kB per file. I wish more people would optimize their website.

Replies (1)

  • @atjn@mastodon.online 2026-03-23 19:23

    @fla@mastodon.social In case you don't know, you can also split the font into smaller chunks and declare to the browser which characters are in each chunk. If you only use a small subset on your home page, and you make a chunk with only those, you can save even more. This has been really useful for me on websites where I could not unilaterally decide which characters were available, but I could provide chunks for the most common characters, which meant most visits used significantly less bandwidth.

    Open ##2463785