I replaced FontAwesome with Feather Icons for the icons used in this site's design. While doing so, I was dissatisfied with the idea that I was taking advantage of only a handful of the symbols defined in the file, but the entire file was being delivered to visitors. I slapped together a fairly simple bit of TypeScript code for trimming the unused icons from the file before publishing the site. I've boiled it down to the base concepts, which we will walk through in this …
About me
I am a software engineer and textmode artist. I worked as a web developer in higher education for almost 15 years, but I have recently moved into the private sector to build microservices and cloud-native solutions. I enjoy solving problems and sharing what I have learned with others.
Recent posts
Prune unused symbols from SVG sprite sheets
Tags:Prevent committing to main branch with husky
Tags:I've recently moved from using pre-commit for my git hooks to husky, and as part of this transition, I've migrated some of my quality-of-life hooks over to the new system. First and foremost: prevent committing to the main/master branch. …
Improved "tail" bookmarklet
Tags:A while back, I scratched my own itch for automated webpage scrolling (e.g. for AWS logs) by creating a bookmarklet that would slam the scrollbar to the bottom of the document every second. It was a ham-fisted approach, but it worked. I …
Latest video
Writing a Discord sidebar toggle bookmarklet on the fly
Discord doesn't let you toggle the server channels list sidebar… but it's really just a webpage, and you can still (mostly) affect those with bookmarklets. So let's do that!
