question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove unused @font-face

See original GitHub issue

Hi

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:open
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
peterbecommented, Feb 8, 2018
1reaction
peterbecommented, Jan 3, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found