Welcome Guest, Not a member yet? Register   Sign In
add minify feature in output class?
#5

(02-29-2016, 04:58 PM)skunkbad Wrote: It's actually not a bad idea. I could see it breaking people's inline JS, but it might be rare, and then they'd just learn a lesson on how to write better JS.

There is this though: http://stackoverflow.com/questions/53621...-from-html
See the accepted answer regarding gzip compression.

well, ok gzip will compress the whole page, but if you have first stripped out the whitespace that would be the ideal.

i tried one of the several libraries for minifying and indeed my inline JS got messed up, but without thinking it too much i thought this could be prevented by a better set of conditions in the preg_replace, right? js scripts do get minified and usually are packaged in minified, but again i didnt think of this any further, i was really curious why CI was not providing something on this, and decided to ask here about it Smile
Reply


Messages In This Thread
RE: add minify feature in output class? - by iz_no_good - 03-01-2016, 01:51 PM
RE: add minify feature in output class? - by Narf - 02-29-2016, 10:47 PM
RE: add minify feature in output class? - by Narf - 03-01-2016, 03:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB