Elliott C. Back: Technology FTW!

Google Adsense Javascript Unobfuscated?

Posted in Google by Elliott Back on April 3rd, 2005.

I just noticed that the javascript which drives AdSense is unobfuscated and be viewed directly: http://pagead2.googlesyndication.com/pagead/show_ads.js. If you wonder how AdSense ads are served, look no further than the source itself.

This made me curious–can I reduce the filesize? Renaming the variables and manually removing whitespace squished the 9,261 byte script to 6,376 bytes. That’s a 2,885 byte or 31% reduction over the original size. And, if you think that’s not that much, it’s a savings of 2.82 MB per 1000 visits. If you’re hosting a site with a 1,000,000 visitors a day, Google could save 2.8 GB of bandwidth! And, your site will load just that much faster for end users. Even if you’re not hosting the javascript, it really should be optimized.

This entry was posted on Sunday, April 3rd, 2005 at 12:53 am and is tagged with filesize, end users, google, variables, bandwidth, gb. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

Viewing 4 Comments

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus