3 ms·
I mean, if it's there and not being used, yes, that's a problem. If we were using a better platform, dead code elimination and tree shaking would have handled
by thegeekpirate 9y ago
I mean, if it's there and not being used, yes, that's a problem.
If we were using a better platform, dead code elimination and tree shaking would have handled those types of issues for us before clients see it.
Like, fuck me, we solved this problem what, 50 years ago? Yet we still haven't solved it? WHY IS THIS STILL AN ISSUE! </rant>
Anyways, it's a problem, yes. A few programming languages wouldn't even allow you to compile equivalent code.
- Cenk 9y agoWhat? No, it’s definitely not a problem. If I include all the different weights of a font family in my CSS, but on some pages don’t use the bold weight, for example, how is that a problem? The browser only downloads the fonts that are actually used for exactly this reason.
- thegeekpirate 9y agoWhat I mean is that the CSS should be minified to remove _any_ extraneous rules, and should be done automatically, just as it's done with most compiled binaries. If you're using those font styles later on, but still using the same stylesheet, that's obviously alright, the performance-testing tool would need to be updated in order to spider through all the pages to verify where each one is being used.