Remove unused @font-face
See original GitHub issueHi
Great tool. It works great except that it doesn’t remove unused CSS items, e.g.
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'), url(data:font/woff;base64,d09GR... <snip/> ...AisA) format('woff');
}
As you can see, the font data is encoded and embedded, which makes the spreadsheets massive (blame https://github.com/grammarly !).
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Remove unnecessary css font-face font type - Stack Overflow
I have a template that use a font via font-face in css with font-face it call all type of .eot .svg .ttf .woff...
Read more >Remove unused font families from code - Webflow Wishlist
There is no way to remove these font families or track if they are showing in your code. It makes a small difference...
Read more >Remove unused font - WordPress.org
Hi,. I used the below CSS provided by you to change the fonts of the comment section. div#comments, input, select, textarea, .ql-container, ...
Read more >Unused fonts/subsets still in the CSS which cause slow speed ...
Hi there. I have problem with my website speed. Google decrease my ranking and Speed score in PageSpeed Insight is low.
Read more >Optimize file size by removing unused font files - Ionic Forum
Optimize file size by removing unused font files ... in src/theme/variables.scss: $font-family-base: "SomeOtherFont"; $font-family-ios-base: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, I would expect that too 😃 Maybe next time https://github.com/peterbe/mincss/commit/715a48fbdaaa180fe8cb795716345c2b71e65426
My new Node based tool (will soon) support this: https://github.com/peterbe/minimalcss/issues/55 It’s also based on a proper CSS parser whereas
mincss
depends on regular expressions.