# Lua Minify CSS, JS

**URL:** <https://discourse.haproxy.org/t/lua-minify-css-js/54>\
**Category:** Help!\
**Created:** [December 30, 2015, 8:52am UTC](https://discourse.haproxy.org/t/lua-minify-css-js/54 "2015-12-30T08:52:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![melaleuca](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@melaleuca](https://discourse.haproxy.org/u/melaleuca)\
**Post date:** [December 30, 2015, 8:52am UTC](https://discourse.haproxy.org/t/lua-minify-css-js/54/1 "2015-12-30T08:52:36Z")

</div>

Is it possible to use Lua Scripting to minify css, and js on the fly?

---

<div class="post-metadata">

**Author:** ![thierry](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@thierry](https://discourse.haproxy.org/u/thierry)\
**Post date:** [January 7, 2016, 3:43pm UTC](https://discourse.haproxy.org/t/lua-minify-css-js/54/2 "2016-01-07T15:43:32Z")

</div>

It’s not possible because the Lua can modify only the http object that can contains entirely in one haproxy buffer.

The on-flight content modification is one of the most required feature. I’m waiting the HTTP/2 implementation for proposing a way to modify the objects content.

So, you can minify CSS and JS that contains in one HAProxy buffer.
