In order to start figuring out how to speed up and optimise this website, I thought I would start by using some popular website speed test tools to figure out the current situation, and go from there. Two of the very popular ones out there are GTMetrix and Pingdom. So I chose one page URL from my blog, and used the tools to see what improvements were recommended. And thats when I found out that Disqus was loading a bunch of junk ad-tracking domains behind the scenes.
I started with GTMetrix. It reported a horrible score, and recommended that I minimise redirects and leverage browser caching, among other things.
Running tests with Pingdom didnt get any better. It too recommended minimising redirects and leveraging browser caching.
Now, this is a fairly simple blog: it uses static HTML compiled using Jekyll, some images, CloudFlare CDN, Google Analytics, Google Fonts, and the usual social connect buttons. Thats about it. None of this should account for over 100 requests, not to mention the insane amount of redirects, etc.
Diving down into the redirects, I started seeing a lot of this:
Pingdom helpfully allowed me to download the above report as JSON, and I extracted all of the domains that occurred in the report. Here is the list:
aa.agkn.com accounts.google.com apis.google.com beacon.krxd.net c.disquscdn.com c.disquscdn.com cdn.krxd.net cdn.viglink.com cm.dsp.linksynergy.com cm.g.doubleclick.net connect.facebook.net cts.w55c.net d.agkn.com disqus.com disqus.com dpm.demdex.net e.nexac.com ei.rlcdn.com fonts.googleapis.com fonts.gstatic.com glitter.services.disqus.com googleads.g.doubleclick.net gpush.cogocast.net i.liadm.com ib.adnxs.com idsync.rlcdn.com io.narrative.io links.services.disqus.com loadus.exelator.com match.adsrvr.org notes.ayushsharma.in p.adsymptotic.com personalnotes.disqus.com pippio.com pixel.sojern.com pixel.tapad.com pm.w55c.net rc.rlcdn.com referrer.disqus.com s.cpx.to sp.adbrn.com ssl.google-analytics.com ssl.gstatic.com stags.bluekai.com staticxx.facebook.com stats.g.doubleclick.net sync.mathtag.com tag.apxlv.com tag.cogocast.net tags.bluekai.com usermatch.krxd.net www.facebook.com www.google-analytics.com x.bidswitch.net x.dlx.addthis.com
This is happening because Disqus, the webs largest network of discussion communities, and Xaxis, the worlds largest programmatic media and technology platform, decided to team up in 2014 to use the comments you leave using Disqus on any website to build anonymous profiles on you and target ads and sponsored stories. This is great news, because, you see, Creative possibilities for brands include text, images and embedded video, tailored to specific audiences, topics under discussion, or both. Of course, as a corporation, you might be worried that your information might be placed on websites where there are comments which might be damaging to your brand, but fear not, because The platform will continually scan the words and expressions used on sites and in comments to ensure ads are only placed in brand safe environments.. And so the words you leave behind, even outside the walled gardens of social media websites, are now open to be monetised. Reminds of that one episide from Black Mirror.
I dont know how you feel about ad-tracking technology. Personally, I think its a little creepy. So Im ditching Disqus comments on this blog until there is a safer alternative. There is an opt-out option, but that only works for users who know there is one. Maybe I should place it in the footer of the blog, warning users that ad-tracking is on.
But thats a conversation for later. For now, Im nuking the comments section.