Delaying Disqus comments to save (a ton of) requests

My blog is a static website generated using Hugo and running on Netlify (you can read about my move from WordPress to Hugo in a previous article) but I still want to allow users to leave comments on my posts so I use Disqus like many other blogs.

The advantage of Disqus is that you do not need to host the comments yourself, and I really cannot with a static website, you just embed a JavaScript file and everything is taken care of for you. There are a few alternatives to Disqus but none of them works very well so there is basically no other option if you want to have comments on a static website.

The problem with Disqus is that this one JavaScript file you embed to your website makes about 50 requests when a page loads. And that is a lot!

[Read More]

Going static: From Wordpress to Hugo

As you may have noticed, static site generation is the next big think. When I created this blog a few years ago I choose Wordpress, because it seemed like a good choice. Now I have grown tired with updating plugins, exchanging broken plugins for alternative ones and so one. So I decided to try to go the static site generation route to make the blog easier to maintain.

Jekyll? Octopress? FsBlog? Hugo!

There are quite a few static site generators out there, so choosing the right one is quite a challenge. Jekyll or Octopress seemed like the obvious choice. Jekyll requires Ruby, which is ok even on Windows, but Octopress had a few dependencies that I did not manage to get working on Windows. FsBlog seemed interesting, especially for me being a F# enthusiast, but frankly it is not yet very usable. So I choose Hugo.

[Read More]