Website Optimization Measures, Part XXVI
Published on September 19, 2024, filed under Development (RSS feed for allĀ categories).
Hello and welcome to episode 26 of a series that started in 2008 and that I use to share random improvements and lessons from the work on my personal projects so that you canālet me make this one sentenceāpick what you think may benefit yours. Web design is a process!
-
Quitting the Google docs viewer (example). I have used this thing forever, to point to PDFs and other office-type docs, and to improve the user experience at times when browsers might have opened another app, or prompted a download, or did other things. Nowadays, however, any browser I tested would readily show the respective document and make it easy to navigate backāwhile the Google viewer was oddly unreliable, sometimes requiring a few (!) clicks to even be navigated to (I never investigated that behavior). Well. Bye. (I still mention if a link goes to a PDF or such thoughābetter information scent.)
-
Reviewing dependency management. Iām a huge fan of Depfu, and Iāve gotten used to Dependabot. Alas, so far Iām using a free plan of Depfu, which doesnāt include private repos. Although I donāt like the double setup, what Iāve opted to do now is to make sure every Node project is set up with Dependabot (to guarantee that each projectās dependencies are managed), and to add Depfu to public repositories. The double setup (and the possible noise related to it) Iām addressing by using a weekly Dependabot schedule in private projects, and a monthly one in public projects (where Depfu is handling the main load). Iām not annoyed, and think it works well!
-
Revising handling of English terms in Germany copy. Oh swearword is this a swearwordāIām probably giving up on trying to make this consistent (let alone āperfectā). Iām probably already giving up on a proper explanation! But letās just say this, especially in German technical writings I use a good number of English termsāand there are a number of (largely inconsequential) ways of marking or not marking these. Iāve worked on improving this butāyou can already tell, Iām not happy yet. (And I do have enough German content infused with English terms that this issue sucks.)
-
Setting up Prettier. š¬ Donāt you worry, Iāve known Prettier for ages! But it took me until scanning Matt Pocockās How to Create an npm Package to finally include it in my overall project setup. Well!
Speaking of which, I had to tweak options and what to ignore quite a bit, to then be so concerned about Prettierās opinionated and upheld decision to ācloseā HTML tags (which leads to useless XHTMLāHTML bloat), that Iāve disabled Prettier for HTML, and am monitoring whether using it does indeed make sense.
-
Kicking Prettier. After familiarizing myself with Prettierās options and opinions, I discovered more decisions I donāt agree with and that I donāt want in my code base (like EOF new lines)āand decided it was not worth it. Good bye š«”
-
Tagging AWS resources. As part of testing and playing around with AWS (cf. Notes on Setting Up a Static Website With AWS), I started tagging resources. Iāve been keeping this simple, just tagging by domain name, and itās all early, but, weāll see.
-
Adjusting bot crawl delays. Ages ago, I limited Majesticās MJ12botās crawl delay on meiert.com. Reviewing robots.txt files and hits from this and related bots, I decided to include Semrushās bot in the mix, too, and set the following rules in all my major websites. To be observed and tweaked further.
User-agent: MJ12bot User-agent: SemrushBot Crawl-delay: 15
-
Optimizing Eleventy configuration and performance. Keeping this vagueāstill testingā, I used AI to question and optimize some of my .eleventy.js customizations. Some of this related to
if
/else
constructs, too. I believe I could shave off Ćø 10% export time for Frontend Dogma, for example, butāIām still testing. -
Quitting DreamHost. Iāve been a DreamHost customer and fan since 2006. I canāt say Iāve grown unhappy, but Iāve definitely fallen out of love over time. The first time I noticed this was a couple of years back, when DreamHost force-upgraded my hosting to a PHP version some tooling I was using didnāt support, then telling me to pay their premium support to get it patchedāwhich, feeling pressured but not to be blackmailed, led to me pulling the plug on said tooling (!). (This was the first time that a hosting provider forced their will on me, and it probably cost them the business relationship.) More recently, I noticed how much more expensive DreamHost was than my German provider, ALL-INKL, as well as AWS, which I use as well. Iāve taken care of the bulk of the work to close my DreamHost account, to complete the rest over the next few months.
This is a part of an open article series. Check out some of the other posts!
About Me
Iām Jens (long: Jens Oliver Meiert), and Iām a frontend engineering leader and tech author/publisher. Iāve worked as a technical lead for companies like Google and as an engineering manager for companies like Miro, Iām a contributor to several web standards, 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 views and experiences. (Be critical, interpret charitably, and sendĀ feedback.)
Read More
Maybe of interest to you,Ā too:
- Next: Untrained Engineering Managers
- Previous: On Ticket Management
- More under Development
- More from 2024
- Most popular posts
Looking for a way to comment? Comments have been disabled,Ā unfortunately.
Get a good look at web development? Try WebGlossary.infoāand The Web Development Glossary 3K (2023). With explanations and definitions for thousands of terms of web development, web design, and related fields, building on Wikipedia as well as MDN Web Docs. Available at Apple Books, Kobo, Google Play Books, andĀ Leanpub.