Last week, someone sent me an email commenting on how fast every single page of my website loads.
Most pages on my site are fully loaded in less than a second (typically around 500-700ms) on a high speed internet connection, and less than 3 seconds on 3G. So how do I make that happen?
Here are my three tricks for building an insanely fast website.
- Fast hosting. Good hosting can make a big difference, but it doesn’t have to be expensive. My site is served from an SSD drive by Digital Ocean. Every single site runs on a single $5/month droplet.
- Static HTML. Instead of having to dynamically create HTML files whenever someone visits, my site is precompiled static HTML files built with Hugo. As as a result, there’s virtually no latency on the server.
There are plenty of other things you can do to improve performance of your site (optimizing images, CSS methodologies, and so on), but these three things have had the biggest impact for me on actual render times.