Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

Slow root page load with custom domain (20+ seconds)

Solved! Go to Solution.

My personal site, hosted on gh-pages, has started taking upwards of 20-25 seconds when loading for the first time. Subsequent loads are fast/typical of a static web page.

 

My personal site is: http://kuanbutts.com/ which maps to http://kuanb.github.io

I can consistently recreate the slow page load by opening FireFox, going into a private browser window, and going to kuanbutts.com. Page load will typically take between 20-30 seconds. This behavior is not isolated to FF - I can also recreate this pattern in Chrome and Safari as well (using incognito modes). I am finding little online regarding this issue and trying to understand what is going on (or receive feedback on how I might interogate this).

Here I watched my network tab in one instance and captured a 1.3 minute time expenditure related to the "initial connection" step:

example_delay.png

When I curled my address, a similar performance, time-wise occurred (30+ seconds to receive the index.html content). The logs I captured with verbose logging turned on were as follows:

➜  ~ curl kuanbutts.com --verbose
* Rebuilt URL to: kuanbutts.com/
*   Trying 144.217.33.197...
* TCP_NODELAY set

* Connection failed
* connect to 144.217.33.197 port 80 failed: Operation timed out
*   Trying 192.30.252.154...
* TCP_NODELAY set
* Connected to kuanbutts.com (192.30.252.154) port 80 (#0)
> GET / HTTP/1.1
> Host: kuanbutts.com
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 200 OK

 

1 Reply
Solution
Copilot Lvl 2
Message 2 of 2

Re: Slow root page load with custom domain (20+ seconds)

Issue was related to a bunch of junk in my GoDaddy DNS records (which I had not really logged into or managed in close to a decade) as well as my A records pointing at a (very) outdated IP Address. It appears there were many, many redirects occuring.

Cleaning up and udpating my DNS records resolved the issue. My site now loads "quickly."