stupid experimental optimisation
"wait i remember that the background image value isnt needed on all of them, right? and since internally putting a comma just makes a new rule, what if i make a seperate rule for the elements that need the background removed, so it isnt applied on all of them" she said, saving such a marginal amount of performance that you wouldnt even notice it on a fucking intel 8086
This commit is contained in:
parent
7c457488a7
commit
5d24429e7a
1 changed files with 5 additions and 3 deletions
|
|
@ -1,10 +1,12 @@
|
||||||
/* AVATAR-TEMPLATE-BEGIN */
|
/* AVATAR-TEMPLATE-BEGIN */
|
||||||
/*{id} is userid in data.json and {img} is the image link, usually gif*/
|
/*{id} is userid in data.json and {img} is the image link, usually gif*/
|
||||||
.userAvatar_f45224[style*="{id}"]
|
.avatar__08316[src^="https://cdn.discordapp.com/avatars/{id}"]
|
||||||
,.avatar__08316[src^="https://cdn.discordapp.com/avatars/{id}"]
|
|
||||||
,.avatar__991e2[src^="https://cdn.discordapp.com/avatars/{id}"]
|
,.avatar__991e2[src^="https://cdn.discordapp.com/avatars/{id}"]
|
||||||
,.avatar__777a6[src^="https://cdn.discordapp.com/avatars/{id}"] {
|
,.avatar__777a6[src^="https://cdn.discordapp.com/avatars/{id}"] {
|
||||||
|
content: url({img})
|
||||||
|
}
|
||||||
|
.userAvatar_f45224[style*="{id}"] {
|
||||||
content: url({img});
|
content: url({img});
|
||||||
background-image: none !important;
|
background-image: none !important
|
||||||
}
|
}
|
||||||
/* AVATAR-TEMPLATE-END */
|
/* AVATAR-TEMPLATE-END */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue