XF 2.3 extra.less or freeform css/less code?

H a z

New member
Licensed customer
Let’s assume that hundreds of changes will be made on the theme, and that we aim to put minimal load on the server.

We can make most changes through extra.less, but after thousands of lines of code, could this cause performance issues due to the file becoming too large?

In this case, should we write such custom modification code in extra.less, or should we place each one in its own separate freeform CSS/LESS section?

I've given a simple code example, but it could be much more detailed. Which solution offers the best performance? Thank you.

Adsız.webp

or

1775476922621.webp
 
Last edited:
It all gets compiled into one big css file in the end.

from a cascade perspective, there's no limit to nesting, and i've yet to see performance impacts with 20-50 over-rides of classes. maybe miliseconds...

use the extra file and make your upgrades easiser.
 
Back
Top Bottom