DUPLICATE: Duplicate / Redundant CSS Styles (External Files)

Although I wouldn’t consider these as real bugs, but I’d like to mention them in hopes we get some updates that output cleaner code in future releases (these are just examples of many instances where I noticed this but you’ll get the idea):

1- If I have for example elements with links in both the header and footer templates, and the css loading method is set to ‘External Files’, there’ll be redundant default styles being duplicate in the generated css files (they’re not needed in the first place)
2025-03-26_15-18

2- Even if I have a logo image the generated css file for the header template will still contain the default styles for a text logo
2025-03-26_15-26

3- Even if I enable ‘Add element ID as needed’ some elements will still have the ID printed out although no styles/functions at all are applied to them (“nav” element in this example)

This also includes css of ‘frontend-light.min.css’, which has many unneeded styles + the default unused color variables

Hi blue,
Thanks so much for creating a separate thread.

#1 This has already been reported, and we’re working on it: WIP: External files: repeated image default styles

#2 There is no differentiation or separate text/image logo classes, so the default styles stay since text is the default.

#3 This is to be able to address them specifically if you have multiple navs, e.g. in the header and footer.

#3b (last sentence) If you are referring to the article, aside, figcation, … or *, :after, … rules: they come from the browser reset css and still make sense.

Overall, none of this is a bug (as you say yourself) but minimal improvements, so I’ll move this report. However, I’m pretty sure these few lines will certainly not influence your website’s performance.

1 Like