You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2025. It is now read-only.
I noted that @extend .class-name is used quite a bit in the framework. From experience, this is something that can go wrong quite quickly and silently.
If anybody happen to use the extended class in any other selector further in the development, that selector will be parsed and repeated as many times as the original class is extended. Which increases file size and degrades performance.
It's best to use placeholders. The difference is shown in the example above.
Mixins are even better.
There will be more repetition in the final code but Gzip performs very well on repetition.
It's more efficient to repeat 1000 times exactly the same thing than sharing 1000 unique selectors.