Slow Script Loading by FireFox with Cassini

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 has to do with an FF bug trying resolve “localhost” using IPv6. Dan Wahlin follows up with the fix, describing how to disable IPv6 in FireFox. Since the issue has to do with name resolution, another workaround is to simply change the URL from using localhost to using 127.0.0.1.

With the bug in place, individual requests typically take over a second. Using 127.0.0.1 or disabling IPv6 in FireFox results in the expected 5-25ms response times for static local resources.

If you liked this post, consider subscribing to email updates about my new posts, or sharing it on Hacker News.

Keyboard shortcuts

?
Show this help
Esc
Close this help or an open menu
n
Next (newer) post: Cool Games
p
Previous (older) post: Holiday Skins for.NET Controls
Tab
Move between links and buttons (Shift+Tab to go back)