Fixing Firefox Slowness with localhost on Vista (or XP with IPv6)

I've been doing a lot of cross-browser testing lately for AJAX applications and Firefox has been killing me since it takes several seconds to load a single page when using localhost URLs on Windows Vista.  Internet Explorer 7 and Safari have been blazing fast with the same pages so I finally took the time to research the issue with Firefox and came across the following information: 

http://kb.mozillazine.org/Network.dns.disableIPv6

It turns out that the slowness is caused by an IPv6 issue with DNS and can easily be resolved by turning IPv6 support off in Firefox while doing localhost testing.  To make the change, type about:config in the address bar, locate the network.dns.disableIPv6 setting and double-click on it to set it to true.  This does the trick for the Firefox localhost issue on Vista and everything is running fast again.

Published Sunday, June 17, 2007 11:11 AM by dwahlin
Filed under: ,

Comments

# re: Fixing Firefox Slowness with localhost on Vista

Monday, June 18, 2007 3:45 AM by Dave

Good find Dan; that's been bugging me for ages. Thanks.

# re: Fixing Firefox Slowness with localhost on Vista

Monday, June 18, 2007 10:02 AM by Raj Kaimal

This issue also exists on Windows XP machines with IPV6 installed.

# Firefox Slowness with VS.NET on Vista » public MattBerther : ISerializable » Blog Archive

Pingback from  Firefox Slowness with VS.NET on Vista »  public MattBerther : ISerializable  » Blog Archive

# re: Fixing Firefox Slowness with localhost on Vista (or XP with IPv6)

Friday, June 22, 2007 5:32 PM by Michael Schwarz

You can get rid of this problem if you are using the computer name instead of localhost like http://michael-pc/...

Michael

# re: Fixing Firefox Slowness with localhost on Vista (or XP with IPv6)

Monday, June 25, 2007 7:32 AM by RichardPrice

This post is really useful and has helped me a lot.

# Vista + FireFox + Cassini Web Server (Visual Studio Web Server) Revisited

Tuesday, August 14, 2007 5:58 AM by Mike Ormond's Blog

A long time ago (and I do mean a *long* time ago) I posted that I was having problems with this combination

# MSDN Blog Postings » Vista + FireFox + Cassini Web Server (Visual Studio Web Server) Revisited

Pingback from  MSDN Blog Postings  » Vista + FireFox + Cassini Web Server (Visual Studio Web Server) Revisited

# Fix the slow Firefox when using localhost with Visual Studio - Andreas Kraus: C#, ASP.NET, Silverlight

Pingback from  Fix the slow Firefox when using localhost with Visual Studio - Andreas Kraus: C#, ASP.NET, Silverlight

# Enlaces de Agosto: ASP.NET, ASP.NET AJAX, IIS7, Visual Studio, Silverlight, .NET « Thinking in .NET

Pingback from  Enlaces de Agosto: ASP.NET, ASP.NET AJAX, IIS7, Visual Studio, Silverlight, .NET « Thinking in .NET

# Blog » Blog Archive » Fixing Firefox Slowness with localhost on Vista (or XP with IPv6) - Dan Wahlin’s WebLog

Pingback from  Blog  » Blog Archive   » Fixing Firefox Slowness with localhost on Vista (or XP with IPv6) - Dan Wahlin’s WebLog

# Bradezone » Changes FTW

Thursday, November 01, 2007 3:17 PM by Bradezone » Changes FTW

Pingback from  Bradezone » Changes FTW

# Michele Cerreto Webl0g » Blog Archive » Firefox e il server web integrato in Visual Studio

Pingback from  Michele Cerreto Webl0g  » Blog Archive   » Firefox e il server web integrato in Visual Studio

# Slowness with localhost on Vista and seaside/squeak in firefox at TechnoBabel

Pingback from  Slowness with localhost on Vista and seaside/squeak in firefox at TechnoBabel

# Jens Pettersson » Blog Archive » L??ngsamt att debugga Visual Studio-projekt i Firefox?

Pingback from  Jens Pettersson  » Blog Archive   » L??ngsamt att debugga Visual Studio-projekt i Firefox?