Alan Hogan

Things Alan Hogan feels like sharing.

These are my comments on music, movies, books, web development and programming, Mac tips, and life in general. Enjoy!

Sun Oct 3
Something else I noticed what I was looking at [CDN-hosted jQuery] before is that Microsoft apparently uses their own internal JS crusher instead of mirroring the official jQuery that’s been crushed with Closure Compiler. Take a look at this URL http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js and then this URL http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js and you will see that the responses are clearly different. Between their superfluous response headers — which include a useless P3P header as well as an indication that it’s being served by ASP.NET — and their poor recompression of the code, the size of the response is 31,143 bytes vs Google’s 24,678 bytes. That represents a 25% size difference in something that you’d expect should be the same! Andrew Mattie