Blogs / Personal blogs

Wesley Aptekar-Cassels

blog.wesleyac.com

Main page

Popular posts
13
Total points
4,271
HN comments
2,748
Rank
#290 personal

Visit blog.wesleyac.com → RSS feedOn Hacker News Oct 2017 – Jul 2023

Software Engineering 4Web & Frontend 3Life, Learning & Writing 3Tools & Productivity 2Security & Privacy 2Infrastructure & DevOps 2

2

GetElementById vs. QuerySelector

A while ago, I was curious how the speed of document.getElementById compared to document.querySelector in Javascript for selecting a single element by ID. querySelector has to do a lot more work, so one would expect that it would be slower, but I didn't know if the difference was enough to care about.

3

Minify and Gzip (2022)

I've been doing a bit of work cleaning up the CSS on this blog in the past couple days — the CSS is from a template that I copied more than five years ago at this point, and it was pretty crufty even when I first got it.