Website Optimization Measures, Part XV
Published on OctĀ 4, 2022 (updated OctĀ 20, 2024), filed under development, optimization (feed). (Share this on Mastodon orĀ Bluesky?)
You can (and really should) update your websites on a regular basis, because web design is a process and because you grow and balance cost and priorities better. But this old article series isnāt about what you āshouldā do, but what I recall from having done on my own, largely personal projects. If it benefits your own projects, tooāperfect!
Upgrading to Imagemin Guard! I hadnāt even published Website Optimization Measures XIV when I took note on thisāafter Merlin didnāt seem to get maintained anymore, I forked the project to get it updated and add more featuresāand make sure thereās a maintained solution to ensure automatically, losslessly compressed images in every repository. I upgraded from Merlin, and suggest you give Imagemin Guard a try! (Let me know how it works for you!)
Falling for the promise of a mini dark mode. Yes, again, and I wonāt say more⦠well, actually, this time it worked though! It took Heydon Pickeringās Inclusive Components to lead me into the right direction. Thanks.
Removing favicon references. The eternal favicon dance! Favicon markup should be simple (none), but Firefox for Android was one of those browsers that needed it. No more! That allowed me to remove (or comment) this markup from all my properties. Fingers crossedĀ š¤
MovingRemovingprerender
s to the server side.prerender
, for now. Iām a fan of resource hints, and have been working specifically withpreconnect
(for CDNs) andprerender
. Butprerender
is hard to test, and when I wanted to move this from the client to the server side, I ran into a few issues. My tweet from that time has some context; Dan Shappir tipped the scale for me to dropprerender
āfor the moment, until itās stable, until I can test it. And configure it on the server side.Ensuring a stronger separation of āglobalā and ālocalā images. For small to medium-size projects, Iāve found a flat structure for images and media contents to work well: Store them all under /media. (This has proven useful over nearly one and a half decades.) Butāmedia that are used by only one article, are better stored alongside that article. This way, the global media folder isnāt being polluted, and article refactorings are easier, too. In this optimization case, I went through my global folder and found some images that were used only locallyāso I moved them there. Thatās it.
Reworking promotions⦠Thereās a fine line, it seems, between making your work visible and sharing it with others, and rubbing it under their nose and annoying them. I wasnāt sure anymore where the balance was with respect to some promotions on this siteālike for my booksā, so I reviewed and rephrased them, to make their value more clear. You let me know whether this worked, please.
Reworking WordPress functionalityālike shorter month formats and additional page navigation options. Once youāve been blogging for 100 years, your archives will get extremely long, and so do lists of archive links. The meiert.com archives cover more than 150 months by now, and as I like to spell out months (as in āOctober 2022ā), the respective lists get unwieldy. To keep it short, I optimized this by moving to a three-letter spelling (āOct 2022ā), and then got caught in testing and tweaking other site navigation options. All directly in WordPress templates, per one of my oldest and biggest blunders as an engineer⦠a story Iāll tell you another time.
Adding theme colorsādespite their messiness. Support seemed okay and I was curious, so on pretty much all of my websites, I set a theme color. Not in the way I would likeāthrough CSS, which could also offer a valid and maintainable way to address both light and dark modeā, but in a way that just barely overcame my preference for HTML purism. A test. Donāt judge me.
This is a part of an open article series. Check out some of the other optimization posts!
About Me
Iām Jens (long: Jens Oliver Meiert), and Iām a web developer, manager, and author. Iāve been working as a technical lead and engineering manager for companies youāve never heard of and companies you use every day, Iām an occasional contributor to web standards (like HTML, CSS, WCAG), and I write and review books for OāReilly and Frontend Dogma.
I love trying things, not only in web development and engineering management, but also in other areas like philosophy. Here on meiert.com I share some of my experiences and views. (I value you being critical, interpreting charitably, and giving feedback.)