Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Twitter Bootstrap in productions, LESS or compressed CSS?

I'm working in J2EE project which want to use Twitter Bootstrap as main style for front-end, with some customizations for fitting product.

I don't know should I use LESS or CSS format introduced by Twitter Bootstrap, if use LESS I have to compile these files to CSS at server or client side, which Java framework help me at server side because I need to cache the stylesheet in product mode, otherwise don't need to cache them.

I'm wondering that precompile at client site will impacts to product performance, anyone made a benchmark for that?

like image 396
Khoi Nguyen Avatar asked Jan 02 '26 03:01

Khoi Nguyen


1 Answers

You could try wro4j for that, which can be used as a runtime or build-time solution for server-side transformation of less into css and also handles the caching. You can read more about less support for wro4j here:

  • Wro4j, Page Load Optimization and Less.js
  • Less css support
like image 130
Alex Objelean Avatar answered Jan 04 '26 17:01

Alex Objelean



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!