2 ms·
Classes can be effectively minified also class Foo { foo() {} #bar() {} } Becomes: class f { foo() {} b() {} } Combined with any type of compression
by apatheticonion 5y ago
Classes can be effectively minified also
class Foo {
foo() {}
#bar() {}
}
Becomes:
class f {
foo() {}
b() {}
}
Combined with any type of compression the negligible difference is eliminated. Though it is true that static functions might be more optimisable in some cases, I'd say that on balance, the effect on maintainability is too significant for the returns. I'll take DI and testability over maybe a few kb difference