![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Stefan Weiss wrote: If size is the metric we're optimizing for, then JS minimization + gzip compression will produce smaller files than gzip alone (obviously). If you think that would be obvious, you have not understood gzip. |
#12
| |||
| |||
|
|
Thomas 'PointedEars' Lahn wrote: Stefan Weiss wrote: If size is the metric we're optimizing for, then JS minimization + gzip compression will produce smaller files than gzip alone (obviously). If you think that would be obvious, you have not understood gzip. I'm not talking about edge cases. Source files where all comments and unnecessary white space and punctuation have been removed will result in smaller compressed files. |
#13
| |||
| |||
|
|
Stefan Weiss wrote: Thomas 'PointedEars' Lahn wrote: Stefan Weiss wrote: If size is the metric we're optimizing for, then JS minimization + gzip compression will produce smaller files than gzip alone (obviously). If you think that would be obvious, you have not understood gzip. I'm not talking about edge cases. Source files where all comments and unnecessary white space and punctuation have been removed will result in smaller compressed files. You will have to prove that. |
#14
| |||
| |||
|
|
On 15/11/09 15:38, Thomas 'PointedEars' Lahn wrote: Stefan Weiss wrote: If size is the metric we're optimizing for, then JS minimization + gzip compression will produce smaller files than gzip alone (obviously). If you think that would be obvious, you have not understood gzip. I'm not talking about edge cases. Source files where all comments |
|
and unnecessary white space and punctuation |
|
have been removed will result in smaller compressed files. snip |
#15
| |||
| |||
|
|
On 15/11/09 16:28, Thomas 'PointedEars' Lahn wrote: Stefan Weiss wrote: Thomas 'PointedEars' Lahn wrote: Stefan Weiss wrote: If size is the metric we're optimizing for, then JS minimization + gzip compression will produce smaller files than gzip alone (obviously). If you think that would be obvious, you have not understood gzip. I'm not talking about edge cases. Source files where all comments and unnecessary white space and punctuation have been removed will result in smaller compressed files. You will have to prove that. Prove what? |
|
I just gave you an example where the minimized version was larger after compression. |
|
also explained that I'm talking about real-life usage, not academic experiments. |
#16
| |||
| |||
|
|
Stefan Weiss wrote: I'm not talking about edge cases. Source files where all comments [snip] and unnecessary white space and punctuation Removing unnecessary whitespace is not necessarily going to have that much impact. |
|
The thing that doesn't make sense to me is that the difference between the eventual zipped versions with and without the javascript minification tends to be extremely small (with the zipping providing the largest size reduction regardless of anything else), and that doesn't quite justify the (cost of the) extra QA stage of verifying the post-minification code. |
#17
| |||
| |||
|
|
This situation issufficiently unlikely to occur that it is practically irrelevant. |
|
If you think it isn't, and if you're correct, you'll have no trouble finding a more realistic counter example... |
#18
| |||
| |||
|
|
I see now that I forgot something. |
#19
| |||
| |||
|
|
Stefan Weiss wrote: I'm not talking about edge cases. Source files where all comments and unnecessary white space and punctuation have been removed will result in smaller compressed files. You will have to prove that. |
#20
| |||
| |||
|
|
Stefan Weiss wrote: On 15/11/09 16:28, Thomas 'PointedEars' Lahn wrote: Stefan Weiss wrote: I'm not talking about edge cases. Source files where all comments and unnecessary white space and punctuation have been removed will result in smaller compressed files. You will have to prove that. Prove what? Your argument. I just gave you an example where the minimized version was larger after compression. http://en.wikipedia.org/wiki/Proof_by_example |
|
also explained that I'm talking about real-life usage, not academic experiments. And that is probably <http://en.wikipedia.org/wiki/Appeal_to_the_majority>. |
![]() |
| Thread Tools | |
| Display Modes | |
| |