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:
coolesding 2024-05-20 02:49:50 +02:00 committed by GitHub
parent 7c457488a7
commit 5d24429e7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,10 +1,12 @@
/* AVATAR-TEMPLATE-BEGIN */
/*{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__777a6[src^="https://cdn.discordapp.com/avatars/{id}"] {
content: url({img})
}
.userAvatar_f45224[style*="{id}"] {
content: url({img});
background-image: none !important;
background-image: none !important
}
/* AVATAR-TEMPLATE-END */