cobalt.rs
cobalt.rs copied to clipboard
HTML compression
It would be great if there is a option to compress the HTML output. Does s.o. know how to achieve this with a minimal effort?
@flosse Are you talking about minimizing the html,css,js etc?
Are you talking about minimizing the html,css,js etc?
exactly!
I don't think there is a good way to do it in rust right now. There are a few CSSParser libraries and HTML parser libraries but that would be a lot of work. What I might suggest is using something like gulp on travis when the site is deployed. Gulp can minimize everything very easily.
Unless you're a very high traffic site I would think that compressing the actual HTML will not have a big impact. We can still leave this open.
Unless you're a very high traffic site I would think that compressing the actual HTML will not have a big impact.
You're totally right but besides the actual compression I was thinking about removing comments.