From 5d24429e7a785d563540d54bdf7a323c0f6012b7 Mon Sep 17 00:00:00 2001 From: coolesding <71647195+coolesding@users.noreply.github.com> Date: Mon, 20 May 2024 02:49:50 +0200 Subject: [PATCH] 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 --- source/template.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/template.css b/source/template.css index 5ab6d4a6..1c531b53 100644 --- a/source/template.css +++ b/source/template.css @@ -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 */