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?

# Bradezone » Changes FTW

Saturday, September 13, 2008 6:44 PM by Bradezone » Changes FTW

Pingback from  Bradezone » Changes FTW

# Gianluigi Sellitto » Blog Archive » Firefox & Google Desktop=lentezza

Pingback from  Gianluigi Sellitto  » Blog Archive   » Firefox & Google Desktop=lentezza

# Slow Script Loading by FireFox with Cassini

Tuesday, December 30, 2008 1:58 PM by Steve Smith's Blog

Bertrand just posted about a bug I’d encountered before but never tracked down wherein FireFox (and in particular, FireBug) is extremely slow in loading scripts for a local web site running on Cassini (Dev Web Server).  It turns out that the issue

# Why are scripts slow to load in Firefox when using Visual Studio???s built-in development Web server (a.k.a. Cassini)? | HowX Buzz...

Pingback from  Why are scripts slow to load in Firefox when using Visual Studio???s built-in development Web server (a.k.a. Cassini)? | HowX Buzz...

# Slow IIS on Vista with Firefox, Chrome or Safari | Codepolice.net

Pingback from  Slow IIS on Vista with Firefox, Chrome or Safari | Codepolice.net

# ASP.NET MVC Archived Buzz, Page 1

Friday, June 12, 2009 8:58 PM by ASP.NET MVC Archived Buzz, Page 1

Pingback from  ASP.NET MVC Archived Buzz, Page 1

# How to make Firefox and Cassini fall in love again - improve.it

Pingback from  How to make Firefox and Cassini fall in love again - improve.it

# Visual Studio, Firefox, Cassini, Windows Vista/Seven ed un po

Monday, July 13, 2009 8:31 AM by Il blog di ugo lattanzi

Visual Studio, Firefox, Cassini, Windows Vista/Seven ed un po

# cmurray.org » Geek Alert: Improve Speed of Apache on XP | Christopher Murray

Pingback from  cmurray.org » Geek Alert: Improve Speed of Apache on XP | Christopher Murray

# cmurray.org Geek Alert: Improve Speed of Apache on XP … – CelebrityTwitterGossip.com

Pingback from  cmurray.org  Geek Alert: Improve Speed of Apache on XP … – CelebrityTwitterGossip.com

# Why are scripts slow to load in Firefox when using Visual Studio’s built-in development Web server (a.k.a. Cassini)? | Tancy's Blog

Pingback from  Why are scripts slow to load in Firefox when using Visual Studio’s built-in development Web server (a.k.a. Cassini)? | Tancy's Blog