SOLVED: Duplicate CSS for Classes

When styling with a class the CSS gets doubled. An example of this can be seen on

https://duds.no/sneakers-herre/

when looking at the classes on the product cards."

2 Likes

Hi Jørgen,
Thanks so much for your report!

I see that .product-card.brxe-block only appears once. The classes in it, such as .product-card__title.brxe-heading, are output twice.

CleanShot 2023-12-05 at 10.51.43@2x

Can you please provide me with a screenshot of the builder including the structure panel (expanded) for the product card area and the cards?

Best regards,
timmse


Like this?

Thank you! I have already added the problem to the bug tracker :+1:

3 Likes

We also have this issue. When starting building a website, it’s all good, but then suddenly we have some pages with duplicate CSS, and on longer pages it’s A LOT of double CSS.

Any update on this :sunny:

I have similar issues on several places. Is the reason using the templates? For me, it seems so. Also it seems the problem is there only when using rendering css to files. @timmse, are my observations right?

Also got the issue with duplicate CSS

@timmse Still experience this issue? any updates is critical

Yes, because the task is still in progress, as you can see from the title. WIP = work in progress :v:

1 Like

any feedback on when this could be squashed? thanks

Hi,

I can’t tell you when this will be fixed, but as I see from the internal task, it’s been already worked on.

M

1 Like

thanks for the update.

1 Like

As stated in my post today : https://forum.bricksbuilder.io/t/duplicate-what-has-changed-with-figure-image/ and since that post was closed for Duplicate reasons, I’ll post my answer here.

@timmse Was this issue introduced in one of the latest versions ?

Seems like this has been an ongoing issue for a long time (original post a year ago…), hope the fix comes very soon, because we can’t expect to have to continuously go back to projects to check “if they’re OK”…

1 Like

this has been on for a while, I believe far before my post. No fix or update yet.

Hi Roberto,
Thanks so much for bringing this up again!

The duplicate classes issue should actually been fixed in Bricks 1.12/1.12.1 as a part of the CLS/FOUC fix.

The task contained so many reports that we overlooked to mark it as solved.

If you continue to have problems, please create a new, detailed report with reproducible steps. Then, we can take it from there. Thanks!

2 Likes

thanks so much, I wasn’t aware - let me check and I’ll report back!!

yep - brilliant!! I missed it also because my acss framework (acss) just loads a bunch of things even though they’re not used on the page.

thanks for all the great work. couldn’t be happier with Bricks !! salaams

so I have a client site, and was digging into the code:

Exciting Belize Horseback Riding Tours | Explore with NOUR

This is running latest bricks builder. Is this normal behavior? looks duplicated…

The post-553 styles are the Bricks styles for that specific post.
The styles below are a cached version of perfmatters “used CSS”:

Check your cache and perfmatters settings.

2 Likes

you are right, my apologies once more I did not notice this. I will reach out to them. thanks!!