How I Made My Github Pages 100% faster.

Martin Galovič
2 min readJul 25, 2019

One of the biggest drawbacks of hosting my personal website on Github Pages was the loading speed yet the solution to speed it up was so easy.

🚀 Easiest solution

Just create DNS A records with all (I repeat — all) of following IPs:

185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153

That’s it! 🎉

Screenshot from my configuration (I’m using namecheap.com 💰). I will receive a small commission if you buy a domain 😉.

Screenshot from namecheap.com DNS management

But, why?

My problem was creating only one A record and then not adding all of them which somehow caused a slow load of the website.

Honestly, I’m not sure why. Github’s DDoS mitigation technology performs long 302 Redirect which results in increased load time.

Anselm Hannemann wrote a detailed article about this, but I also found this thread where Github Ops commented on HackerNews.

Are there any other options?

You could also go with ALIAS DNS records, but this is the solution that worked for me.

Was this article helpful? 🙏

First of all, I’m glad I helped. You can help me as well!

Follow me on Twitter, add me on LinkedIn or check out my Github. Also, I post some pics @galovic_.

--

--