Skip to main content

Firefox and DNS prefetching

Firefox and DNS prefetching - I read about this being a feature in Google Chrome, but I wasn't sure if it was, yet, a feature of Firefox. It is in Ff 3.5. Here you can find a list of the new features in Firefox 3.5.

What is DNS prefetching? - It is the process of requesting domain name and IP address resolution used in links, images, documents and other content linked to from a page a web surfer is currently browsing. Theoretically, by taking care of the name resolution before a surfer desires to navigate to a file or another page from a link on the current page can save fractions to X number of seconds. Name resolution being out of the way the surfer should arrive at its next destination faster. The former is my definition and understanding of DNS prefetching. In my experience, at leased in Google Chrome, I am able to see performance improvements.

I needed to know how can I tell if it is on or off. In Google Chrome it is in the options menu and it can easily be turned on and with a simple check-mark click.

[caption id="attachment_2419" align="aligncenter" width="502"]Google Chrome DNS prefetching option. Google Chrome DNS prefetching option.[/caption]

But, in Firefox this is not a function in the options menu. At leased not at this time.



To control it you will have to go to the about:config in your address bar. If this is you first time going to the config panel then Firefox will give you a warning. Something about "voiding your warranty", which I don't quite get. Any ways, just click the "I will be careful button" to access the config panel.

[caption id="attachment_2367" align="aligncenter" width="758"]Firefox config warranty warning. Firefox config warranty warning.[/caption]

By typing in the filter text filed you will be able to actively filter all other setting but the one you are looking for. In this case you are looking for network.dns.disablePrefetch. My installation of Firefox is an old one with upgrades added over time. For some reason I did not have the above parameter in my configuration. I'm guessing it is either because DNS prefetching comes turned on and there is no need to add a On/Off switch or it simply was not created during the upgrade to Ff 3.5. In any case, if you want to turn off the DNS prefetching feature or, like me, you want to make sure it is on, and the parameter is not there, you will have to create it. To do so right click on a white space in the config panel and hover down to New > Boolean. In the "New boolean value" text box that pops up enter network.dns.disablePrefetch then click OK. In the next box select false. The result will be a user set parameter.

[caption id="attachment_2366" align="aligncenter" width="390"]Firefox user set parameter Firefox user set parameter[/caption]

That's it. Enjoy faster browsing.

Source: Controlling DNS prefetching

Comments

Popular posts from this blog

Format MAC Address [JavaScript]

I am currently working on a project which will allow users to register their Wi-Fi enabled, non-web browser enabled, devices on the network. These are devices like printers, Apple TV, and Xbox*. One of the data points that have to be collected from the user is the device MAC address. The project customer wants that address to be properly formatted when they see it in the support ticket.

We have several options. We can format the address either on the back-end after the form has been submitted. Or we can format it on the front end via a separate text field for each character pair, but that is too many fields to handle. A better solution is to use a single field and format the user input at the time of input or upon submit. In those cases, the former is better because the data will already be formatted when the overall form input is being validation after the user clicks the “Submit” button.

We are going to format the user input as it is being provided, thus having proper data when vali…

How to setup Coda 2 to push to GitHub?

Setting up a new site in Coda 2 and cloning a GitHub remote repository is not that big of a deal. Where you will most likely run into problems is when you try to push your changes to the GitHub remote repository. Below I will show you how to update the Git config file in your local repository so you do not run into one of the following errors:
git push failed remote: Remote anonymous access to repository deniedgit push origin master Username: fatal: Could not read passwordThe GitHub repository address I am going to use is that of Source Code DNA: https://github.com/thetitan/sourcecodedna.git. I will assume that you have already setup your Coda 2 site profile and cloned your repository, you have made some changes, and now you are ready to push those changes to your projects GitHub repo.

SNOOZ: Sound. Sleep.

I was on the Snooz Kickstarter page today, revisiting the project’s details and timeline progress. The device, which is a white-noise generating machine, recently became available for pre-order. Snooz is meant to be an alternative to having a TV or a stationary fan running at bed time. In my case, I bought it for my wife so we can get the TV out of the bedroom.

Whilst on the comments page I read the following comment, posted recently by Ken Tran:

I'm not a fan of the new fabric design. ...
I must disagree. If you take a look at the original design, which is all plastic and no style, I must say it is fugly. It is all utilitarian - not something I rally want to look at or see when I walk into the room. The final design, seen on the right, is something that beacons to be explored, looked at, utilized.

I am a big fan of Bang & Olufsen. They use fabric from Kvadrat in their line of products. Incorporating soft materials like fabric or leather in something which is meant to be place…