Find the fastest DNS server with Google NameBench

One of the factors that dictates browsing speed is the time it takes to do a DNS lookup – that is, convert a domain name such as google.com into an IP address such as 209.85.227.105. Generally most people use the DNS servers operated by their ISP. Usually this is fine, but sometimes ISP DNS servers can be unreliable, and they’re not always the fastest choice.

There are many free public DNS services, such asĀ OpenDNS and search giant Google’s Public DNS, but it’s difficult to know which one is best for you. Enter NameBench, a free cross-platform tool which tests a raft of public DNS services using either your browser history or a list of top domains. Once the tests are complete, you receive a summary of the results including suggested primary, secondary and tertiary servers:

So if you’ve got a few minutes to spare, why not see if you can shave a few milliseconds from your page load times?

Standalone installer for Google Chrome 4

Google offer a standalone installer for the Windows build of Google Chrome, as opposed to the standard download which is actually just a small stub application that connects to Google’s servers to download and install the actual browser.

The offline installer is handy if you have a number of machines on which to install or update Chrome, but unfortunately Google haven’t updated it recently, so you end up with version 3.0.195.38 rather than the latest all-singing, all-dancing, extension-supporting version 4.0.249.89.

You can of course update to 4.0.249.89 from the About screen, but this defeats the purpose of using the standalone installer in the first place, and you may be unlucky enough to be on a corporate network which breaks the in-browser upgrade functionality.

By using Fiddler2 to monitor the activity of the stub installer, I was able to establish that it connects to the following google.com URL to download the latest build:

http://cache.pack.google.com/edgedl/chrome/install/249.89/chrome_installer.exe

This is your standalone/offline installer, which can be used to install new instances of Chrome or upgrade existing ones (in which case the installer will upgrade your browser silently).

Google release new builds fairly frequently, so keep an eye on the Google Chrome Releases blog and substitute 249.89 with the build number of the latest stable (or development, if you’re feeling brave) build, e.g. http://cache.pack.google.com/edgedl/chrome/install/322.2/chrome_installer.exe for version 5.0.322.2.

Google’s clever image preloading technique

I noticed today that the Google logo shown at the top of all search results is actually a composite image, sliced up through clever use of CSS positioning:

Google nav logo

At first, I thought of this as nothing more than a neat trick, but then I began to think about why Google might have decided to use this technique to their advantage.

Whenever a client browser requests a page, it will also make a request for each of the images (and other media) embedded into the page. Once an image has been displayed once, it is usually cached client-side to conserve bandwidth and improve performance for subsequent loads. For example, the RSS logo at the top of my blog will be downloaded from my server on your first visit, but as you move through the site, future references to the file will be fulfilled from your browser’s cache.

Google isn’t particularly image-heavy, but a typical results page could contain five or more ‘sprites’ or graphical elements. By squeezing them into a single file, user’s Web browsers need only make two requests (one for the page itself and one for the composite image) instead of six or more.

This might sound trivial, but considering that Google serve billions of result pages to millions of different visitors every day, the cumulative saving in bandwidth and server resources is likely to add up to quite a figure.

If you operate a moderately high-traffic site, it might be worth considering using similar tactics. The only other site that I’ve noticed that has used CSS image slicing in this way is the now-defunct Cdiscount UK site, for its pricing images.

How to fix “Google Update installation failed with error 0x8004071c”

I just tried to install Google Chrome on my Windows 7 machine and was faced with this obscure error message.

I found the answer on the Chrome support site – it’s caused by the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Setup\State\ImageState

Mine was set to IMAGE_STATE_UNDEPLOYABLE. Removing this value enabled the Google Chrome installer to proceed as normal.

Google explains Chrome OS

The upcoming Google Chrome OS is basically a stripped-down operating system that runs nothing but a Web browser. The video above explains the rationale behind this, and what makes Chrome OS so great.

Chrome OS won’t be ready for prime time until some time next year, but if you want to give it a go, there’s a pre-release version here which you can download and run in a virtual machine.