jQuery plugin to calculate read time

Josh Sherman
1 min read
Software Development JavaScript

I love hosting my blog on GitHub by way of Jekyll but the Liquid templating system is far from a robust scripting language in my opinion. With the rise of Medium, I’ve been seeing the read time on more and more articles and figured it was time to add the same functionality to my own site. I had checked this post out but they did not compensate for inline images in the same way Medium does.

Instead of attempting to will Liquid into doing my bidding I figured I would slap together a solution that could be used on any static site and would not be dependent on a single templating engine. I know what you’re thinking, “there’s already other plugins out there that do this”. Hell yeah there are! But after doing a small bit of research I started to feel like all of the existing solutions were a bit too bloated for my needs. To quote Full Metal Jacket:

This is my rifle. There are many others like it, but this one is mine.

Well jquery.readtime is my jquery plugin. There are many others like it, but this one is available for immediate consumption over on GitHub. Oh and it’s super light too ;)

Join the Conversation

Good stuff? Want more?

Weekly emails about technology, development, and sometimes sauerkraut.

100% Fresh, Grade A Content, Never Spam.

About Josh

Husband. Father. Pug dad. Musician. Founder of Holiday API, Head of Engineering and Emoji Specialist at Mailshake, and author of the best damn Lorem Ipsum Library for PHP.

Currently Reading

Parasie Eve

Previous Reads

Buy Me a Coffee Become a Sponsor

Related Articles