I have been using Jekyll Codex extensively the last few years and so have you. Jekyll Codex displays in Google has risen from almost zero to an average of 200 a day. The average amount of clicks has also risen from just a few to an average of 20 a day. This makes for an average of 600 visitors per month, which is not half-bad for such a niche website. Some of these people have even donated a coffee. Thank you so much!

Jekyll Codex has been my personal code base for reusable scripts, but the last months a shift has taken place in my personal workflow. I have gotten rid of all frameworks I was using. This means: no more (overriding) Twitter Bootstrap and no more jQuery. I am now writing my own CSS, using Flexbox and I have been chosing vanilla (plain) javascript over jQuery in all my new projects. This allows me to build websites that are 20kb or smaller. Twitter Bootstrap and jQuery made my website unnecessary large and slow.

My ultimate goal is to ‘fix’ Jekyll Codex too: the code as well as the website itsself. I want the upgrade the Google Lighthouse score to a solid 100.

I have started with upgrading the new-window-fix.html script. Google Lighthouse suggested it needed a rel="noopener" on all external links, so I added that. Then I got to the big work: porting the code for the lightbox from jQuery to plain javascript. This was tougher than I thought. Porting code from jQuery to plain javascript is extremely educational and makes you appreciate the things jQuery can do (but not enough to keep it ;-)). The websites youmightnotneedjquery.com, MDN web docs and Stack Overflow have been helpful resources. Below you can find my first version of the plain javascript lightbox. Note that it does NOT support swipe or captions. You can see it in action here.

A lot of scripts still need to be ported. I am not sure if they are all going to make it to the new version of Jekyll Codex, but we will see. For now it is a one-at-a-time task.

I will keep you posted...  read more →

Joost van der Schee

Share on: