Why does my 'dns' lookup and 'connect' take over 2 seconds (57% of page load time)?

16,386

Solution 1

DNS is not your problem.

Take a closer look at your network waterfall chart. Your application.js file is your first performance culprit. If you can:

  • make it smaller
  • if you can, move the script tag to the bottom of the page
  • even better, if you're not doing any document.write's in your script, mark it as "async"

With that out of the way, your background is your next biggest problem - it's massive. Perhaps its worth reconsidering if it should be there if you're really concerned about speed.

Solution 2

DNS is slow if the server is heavily loaded, poorly configured, or the network link between the client and DNS server is slow. Try a different server on a bigger network pipe. Your question is missing many details that could provide better answers. For example what is your host and network environment?

Share:
16,386
Kamilski81
Author by

Kamilski81

about.me/kamilc

Updated on August 02, 2022

Comments