Mangled atomic classes optimization #197
Closed
Arif-un
started this conversation in
Ideas & Features
Replies: 1 comment 4 replies
-
|
Hi @Arif-un. Thanks for creating this discussion. I will think about it. When I was creating the algorithm, I thought about adding uppercase letters and even numbers, however, there were the following reasons why I didn't:
However, I could potentially add a configuration option to the algorithm for custom letters or custom algorithm. I will try something after releasing 0.6. This should be tested first. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I found one of the great advantages of this library is mangled atomic classes, which significantly reduces stylesheet size.
Those classes are generated incrementally, like
.a,.b,.c, ....z,.aa,.ab, and so on, each iteration generates from 26 characters.In CSS, classes are case-sensitive so if we declare
.aand.A, those are completely different from each other, also numbers can be used alongside characters.So this incremental way can be more efficient for an atomic class generation.
A tiny library might help for generating incremental string incstr
Beta Was this translation helpful? Give feedback.
All reactions