Website Optimization Measures, Part XXIV
Published on JunĀ 11, 2024, filed under development, design, optimization (feed). (Share this on Mastodon orĀ Bluesky?)
That was quick! Over the last two weeks, I refactored a few more things on my websites. Chances are, you know what this series is aboutāif not, itās where I share improvements and lessons from the work on my projects so that you can cherry-pick what you think could benefit yours.
Switching to AVIF. After monitoring AVIF support for years, in May the time felt right to start an initiative to convert project imagery to AVIF. The first project, though with only a single image to be converted, was Frontend Dogma.
Rolling back select AVIF changes. Exactly that first test then failed, when neither Mastodon nor Twitter/X seemed to be able to handle AVIFs. (This seemed to be confirmed when looking at common documentation, like OpenGraphās guide.)
Lowering book prices (letās just make this a website thingĀ š ). Iām a believer in Germanyās idea of fixed book prices, even though it doesnāt apply to most (now perhaps any) of my titles. Over the last few years, keeping all prices the same turned out to be a problem for me, however, because Leanpub, my favorite book platform, increased minimum book prices twice. Not only did this mean that a platform kept pushing me, requiring me to run several unprompted and unwanted updates for many books on several platforms, it also had me set prices I didnāt stand behind. In May, I started hitting the brakes, coming up with a bit of a hack (using Leanpubās causes to donate the money I didnāt want to charge) to lower prices to what I consider fairāmost notably, my HTML optimization books as well as well as some philosophical self-help titles (check out the bundles!).
Abandoning AI summary experiments. After starting to test monthly summaries of what was going on in frontend development (see the now-archived April edition), it quickly turned out that this wasnāt going to work in the long run. Google Gemini, which gave the best results, was either more or less repeating what was said in the respective previous update, or it would start hallucinating, suggesting developments for which the headlines gave no indication. That didnāt add value, which is why I ended the experiment.
Debugging and optimizing Eleventy performance (for Frontend Dogma).
While I still have the hastily written thread open,the gist is, donāt usegit Last Modified
. Really donātāyouāre likely to already feel the impact with only dozens of files. In Frontend Dogmaās case, ~600 of these requests led to ~140 seconds of extra export time until I refactored the approach and moved away fromgit Last Modified
.Kicking out IE-only scripts and styles. When in 2019, I made Haiku Haiku Love (backstory) winter-proof by converting it into a static website (with valid HTML), I had missed how some of WordPressās IE-related code was still stuck in there. On some testing and probingāwhich may suggest itās useful to even look at dead projects at times, if theyāre still reachableā, I found these references, and removed them and the respective files (another backstory).
Cleaning up domain registrations. For a number of years I held stewardship over two domains; for some reason, for both of them, I could finally move forward and transfer them to who should really own them. (One of them was a family name domain, something to hold near and dear.) As if that wasnāt enough, I used the opportunity to move one of my domains from one provider to another, and to let another phase out. Iām not a domain hoarder, but I own a few, and, you name it, this, too, falls under maintenance and optimization.
Optimizing site headers. Even though the meiert.com site redesign is coming up, one problem I didnāt get out of my mindāthe still relatively large logo. I couldnāt but take an evening to refactor the meiert.com header and navigation, including some other small improvements, like handling on smaller screens. (And yet, further optimizations may now need to wait until I get to roll out the new design.)
Replacing old toggle scripts with
details
/summary
disclosure widgets. For the old and discontinued āWeb Dev Reportā cartoon series, I had back in the day worked with a homemade scripting solution. Iām not sure what took me so long to replace it by using native HTML functionality, that is, thedetails
andsummary
elements. Done!
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.)