87% of my blog readers are using Chrome on desktop. This means that I have the luxury to care less about performance. However, I just recently found that the site has 56 (out of 100) points on Google's pagespeed test. That's not good. The report says that my Disqus comments are blocking the main thread for ~900ms. I want comments on my blog but I also want my users to reach the content as quickly as possible. So, I've made Octomments!.
Documentation · Author · Full story<div id="comments"></div>
<link href="https://unpkg.com/octomments/build/ocs-ui.min.css" rel="stylesheet">
<script src="https://unpkg.com/octomments/build/ocs.min.js"></script>
<script>
Octomments({
github: {
owner: 'krasimir',
repo: 'octomments',
},
issueNumber: 1,
renderer: [OctommentsRenderer, '#comments']
}).init();
</script>