5 ms·
Their point seems to be that inlining a class name means the class will only be defined once, but the case of an inlined style means the style information must
by lutusp 11y ago
Their point seems to be that inlining a class name means the class will only be defined once, but the case of an inlined style means the style information must be duplicated for each appearance. The style approach hits all the bad buttons -- the load is larger and slower, and its execution is slowed compared to a single class definition that's referred to multiple times.
Also, in the case of a defined class, you only need to change the class definition to change all the instances, rather than chasing down each explicit style instance.
The reasoning is only valid if the defined style is used more than once. If the style is unique, the argument doesn't hold up.