free hit counter


My Links
Java J2EE Practise
Windows Tips
Windows XP Tips
Troubleshooting Tips
AMCP Tech Blog
Techno-Freek
Technology News Etc
Xtreme Hacking Tips
Showcase for New Blogs

Downloads
Click here to download latest softwares from Amazon.

Software

Tuesday, April 05, 2005

Google Speeds Up Firefox Searches

One more Firefox vs IE Issue
If you are using a Firefox (or other Mozilla-based) browser, you will be in for some pretty handy Google speed increases.

Google has a feature whereby when you key a search term into Google it often has a pretty good idea of what it is you are looking for. This will be enhanced for Mozilla-based browsers, where Google will anticipate your selection and "prefetch" the target page content while it's waiting for you to click on its link. This will mean that there is a good chance that the page you are looking for has already been locally cached.
The Inner Details....
When you key a search term into Google it often has a pretty good idea of what it is you are looking for. For example, if you key in "microsoft" it's likely you are looking for the Microsoft.com page, and Google puts it up in the top search results position.

In cases like this, where Google assumes that it is very likely that you will click on the obvious choice for your search term, it now attempts to speed up the subsequent display of the the likely target page-that is, if you are using a Firefox
(or other Mozilla-based) browser. What happens is that Google will anticipate your selection and "prefetch" the target page content while it's waiting for you to click on its link. So, when you finally do request the page, it's hopefully already in your cache, speeding up its display. If you click on another link instead, it will stop the prefetching process.

Why just for Firefox? Mozilla utilizes a function called "prefetching." Here's the definition of prefetching from the Mozilla Link Prefetching FAQ:

"Link prefetching is a browser mechanism, which utilizes browser idle time to download or prefetch documents that the user might visit in the near future. A web page provides a set of prefetching hints to the browser, and after the browser is
finished loading the page, it begins silently prefetching specified documents and stores them in its cache. When the user visits one of the prefetched documents, it can be served up quickly out of the browser's cache."

It looks like another win for FireFox, which has now moved up from 39.7% of Google Tutor readers in March to 45% so far in April (versus Internet Explorer at 35.3%). If you have not yet downloaded Firefox, get it here. (You don't need to dump IE; it will still be there.)

But wait, maybe you don't think it's a win for Firefox. In fact, depending upon how you feel about filling your cache and adding to your cookies, you might think the whole thing stinks. You see, if you don't actually go to the presumed target web site Google prefetches, you're still adding to the cache and potentially adding a cookie each time you perform a search. The extra pages in your cache can't be a big deal, but you may or may not be thrilled about the cookies. It doesn't really bother if you visit many web sites all day long, what's a few more cookies and cached pages?

The good news is that if you don't like the idea of prefetching, you can disable it. In Mozilla 1.3+, there is a preference in the UI to disable prefetching. See Preferences->Advanced->Cache to disable it. In Firefox, you can disable prefetching by doing the following:

1. Type "about:config" the address bar.
2. Scroll down to the setting "network.prefetch-next" and set the value to "False".

With prefetching, you better hope that if while searching on your computer at work the first search result isn't a porn site, and ends up getting downloaded into cache. If you have to explain that to an administrator who discovered porn in your cache, make sure to tell him or her that the content is flagged in a different way from content that is actually chosen to download.

Explain that an ‘x-moz: prefetch' header is sent with the request, and the referrer header will match the Google search results page.

If you are techie, you might be interested in how this works. On searches where Google thinks it knows you'll end up clicking the top search result, it inserts a special link tag, supported by Firefox and Mozilla, that tells the browser to download the top search result before the user clicks on the result. This tag is only inserted when it is likely that the user will click on the first link.

For example, when a Firefox user searches for "microsoft", Google includes the following tag in the results HTML:
<link rel="prefetch" href="http://www.microsoft.com/">

The official Mozilla Link Prefetching FAQ describes the behavior of this tag in detail.

If you are a webmaster, be aware that prefetching may impact your site by generating additional traffic usage, because the prefetch request will happen whether or not the user clicks on the result.

Google for Related Stuff:

2 Comments:

Blogger Phani said...

Finally U agree with me that Firefox is a much better browser than that crap IE.

5:27 PM  
Blogger Xenas said...

In my opinion Firefox is not a better browser for people like me who use Windows. It is slow to open in windows ... just because google has some inherent liking towards Mozilla doesnot make it a top in all conditions ...

11:08 AM  

Post a Comment

<< Home