0

I need to speedup my site.When looking for solutions google suggests

  • Compacting CSS code can save many bytes of data and speed up download and parse times.
  • Eliminate render-blocking JavaScript and CSS in above-the-fold content

    How to minify css in contao? Is there any configuration available?

2
  • Use cssminifier.com to minify css and replace with original or add new Commented Feb 20, 2018 at 5:09
  • I need to know whether the contao CMS has any configuration for doing this.
    – Aswathy S
    Commented Feb 20, 2018 at 5:45

1 Answer 1

0

It does, you could even use scss and get minified css from that. First go to the theme, layout and add an external css, less or scss file: enter image description here

Then go to settings and activate the minification: enter image description here

4
  • Activated the settings . But the css files are not minified.Is there any effect when adding the above css frameworks?
    – Aswathy S
    Commented Feb 20, 2018 at 6:12
  • Where do I find these settings? I don't find them.
    – MAESTRO_DE
    Commented Jul 29, 2019 at 11:46
  • @MAESTRO_DE which Contao Version? I can not find them either in Contao 4, but I definitely can remember them from Contao 3! The screenshots look like C3 at least.
    – gabelbart
    Commented May 25, 2022 at 14:01
  • Today I would recommend to use a pre processor like webpack or gulp, work with scss and add the minified file to your layout. Commented May 26, 2022 at 17:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.