The most common cause of page loading slowdown in browsers is due to ipv6, which comes enabled by default in Ubuntu. When it is enabled, it needs to timeout before ipv4 kicks in, which causes the delay when ipv6 is not supported by your network. There is a simple test that you can perform to verify if this is the issue - try to access a web page using the IP address. For example, try to open the following address:
http://69.59.196.211:80
It should take you to Stack Overflow site. If the address responds quickly, then most likely that you have a DNS resolution issue due to ipv6.
You can disable ipv6 in Firefox, by setting the network.dns.disableIPv6 preference to true.
- Type about:config in the address bar, press Enter.
- Find network.dns.disableIPv6 in the list.
- Right-click -> Toggle.
- Restart Firefox and try again.
You can also disable ipv6 on the system level. To do that, open the file /etc/default/grub with an editor:
gksudo gedit /etc/default/grub
Then change the following line:
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
With the following line:
GRUB_CMDLINE_LINUX_DEFAULT=”ipv6.disable=1 quiet splash”
Then update grub:
sudo update-grub
You can also try to increase Firefox's DNS cache size and reduce DNS caching expiration, so the browser doesn't query the DNS server so frequently.
- Type about:config in Firefox address bar to open the advanced preferences
- Type network.dnsCache in the filter field and hit enter
- Right-click on the empty results and select "New >> Integer"
- Set the preference name as network.dnsCacheEntries and set value as 1000
- Right-click on the empty results and select "New >> Integer"
- Set the preference name as network.dnsCacheExpiration and set value as 7200
dig
orhost
?/etc/resolv.conf
might be helpful in answering this. Since we probably can't reach your nameservers, you might want to trydig @nameserver-ip askubuntu.com
and see if that responds quickly.