Fix Safari Slow Page Loading Issue in Mac
Safari is the default browser on macOS for browsing and viewing certain type of web files like CSS. The performance of Safari will be very good when the Mac is new but over the period of time undoubtedly the pages will start loading very slowly. Notably the same page loading slow in Safari will load very fast on other browsers like Google Chrome and Mozilla Firefox on the same Mac.
After trying out with multiple tricks, here are consolidated list of tips for improving the page loading speed with Safari.
Let us discuss each option in detail.
1. Change DNS
Though DNS servers are not directly related to the browser as such, one of the main reasons for slow page loading is the caching problems due to DNS servers. Safari obtains DNS servers from your ISP’s through default settings. You can change the DNS servers to any reliable public servers like Google Public DNS servers and try loading the page again.
2. Switch Off DNS Prefetching
Besides DNS servers, Safari also do DNS prefetching to resolve the domain names to IP addresses for all resources on a webpage. For example, if a page has 10 links and 3 images, then Safari proactively will try to get the server IP address of each of the links and images (10 + 3). This will help to load the links and images faster if clicked upon, but may cause slow loading of the current page you are trying to view. So you can disable the DNS prefetching option and check whether the page can be loaded faster. In Mac the DNS prefetching needs to be disabled using “Terminal” application as explained below:
Open “Terminal”, paste the below command and press enter.
Disable DNS Prefetching in Safari: defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false