Fix Safari for Slow and Loading by Disable DNS Prefetching

Last updated on October 11th, 2014 at 09:12 am

I’m wondering why Safari on my Mac always slower load on facebook.com, but fast in Google Chrome. I did set the DNS for my network to Google DNS 8.8.8.8 and 8.8.4.4 and it doesn’t help much.

facebook.com reverse the IP differently from different location, if your browser prefetching it, maybe slow down from the previous IP you get. So I tried to disable the DNS Prefetching using the Terminal.

[code lang=”bash”]
defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false
[/code]

If I want to re-enable again, I can run this in Terminal.
[code lang=”bash”]
defaults delete com.apple.safari WebKitDNSPrefetchingEnabled
[/code]

I feel that the loading speed is faster than before.

Tags:

Discover more from Juzhax Technology

Subscribe now to keep reading and get access to the full archive.

Continue reading