Last Updated: February 25, 2016
·
625
· ericrallen

Browser-Cacheable, Easily-Updatable Bookmarklet

Introductory Note

This might be common knowledge to most folks, but this was my first foray into the world of bookmarklets.

This particular bookmarklet is still in beta and therefore can change very frequently based on user feedback and alterations to the main application's logic.

Building a Cacheable, Updatable Bookmarklet

TLDR

Essentially, I built a very lightweight loader that will never be cached and loads the actual bookmarklet loader where you can specify a version number to be appended to the bookmarklet's logic file, which will allow the browser to still pull it from the cache if it hasn't changed.

I couldn't find a whole lot in the way of good resources while building my first bookmarklet, so I thought I'd share my experience just in case it helps anyone else who is in the same boat or if I've approached this in entirely the wrong way and someone with more experience can provide some better alternatives or direct me to some better resources.