remove whitespace
- Started
- Last post
- 10 Responses
- dbloc
who does this when they upload code?
Is there a good program for this?
- mikotondria30
I don't, but I think it's called minify or something.
I honestly don't see the point.
- dbloc0
I guess it's only really necessary if you are trying to hide code.
- dbloc0
suppose to make pages load quicker, but seriously how much quicker is removing white space going to make it?
- Exactly. Plug in gzip, and it's all compressed anyhow..mikotondria3
- < right, gzip is cool.********
- ********0
You can remove white space using notepad++
- ToxicDesign0
Dunno what you are asking here specifically...
You mean this? http://www.refresh-sf.com/yui/
- Mojo0
Right, the point of it is to minimise loading time for web browsers. You'll be grateful for this when a site uses it, and you're on a shitty 2G connection trying to find something.
> Minifying means to remove unnecessary stuff (mostly spaces).
Minifying is a good practice, especially when combined with server-side compression - can result in high compression ratio.
There's no point doing it to 'hide' your code. That's what packing is for (JS). Google values page speed, so it's important.
- mtgentry0
After you compress .js to a gzip file, how do you call it up from the browser? And does the server need to be configured at all?
Saw some stuff on google but it was confusing : p
- Most modern browsers support gzip. Even IE6 supports gzip though there are supposedly sometimes a couple of bugs.kalkal
- http://stackoverflow…kalkal
- ********0
Proper minifying also reduces character length of declared functions and variables, right?
It's a neat way of making your code harder to modify as well.
- Sure is, look at google's front page code and try and figure out what the hell is going on.kalkal
- or facebook.mikotondria3
