Website Optimization Measures, Part XXV
Published on August 21, 2024, filed under Development and Design (RSS feed for allĀ categories).
For those of you who know this series, hi!āfor those of you who donāt, this is a series where I share improvements and lessons from the work on my personal projects, so that you can cherry-pick what you think could benefit yours (or laugh about the things I do).
-
Test-driving the
Clear-Site-Data
header. Learning about it in Harry Robertsā How to Clear Cache and Cookies on a Customerās Device (when adding the article to Frontend Dogma), I added the following line to my server configurations (commented, and awaiting further testing):# Header always set Clear-Site-Data: "*"
-
Switching to New York Times capitalization. I had been using title case for many years, until I āofficiallyā adopted the New York Times style, reviewing their style guide and refactoring headings. I shared details and conventions after I had finished the switch.
-
Axing alternative social graphics. On this site, meiert.com, I had for some time used an alternative image (sometimes several) for everything but the two homepages. What can I sayāit was like I woke one up one morning and didnāt like that alternative anymore. So I went back to using just one graphic, the same, for all pages. (Iām sure Iāll make other adjustments in the future.)
Figure: The now deprecated alternative in action.
-
Starting to use
fetchpriority=high
. Its time felt ripe, and so Iāve added and am currently testingfetchpriority
in some of my projects. -
Starting to use axis shorthands. In my post on CSS in 2024, I rehashed my take on logical properties. Butāthereās a scenario where Iāve found them useful in mono-directional projects, and thatās for axis-related shorthands like
margin-inline
,margin-block
, &c. Iāve been reviewing and updating my projects to make more use of these, and with that, condense and save code. -
Testing Cloudflare. Iāve been putting Cloudflare in front of two domains, and am currently deciding how to interpret the results and what to do next. Focusing largely on Speed Index on five continents, in one case, Cloudflare led to a faster average 5 times, and a slower one 4 times; in the other case, Cloudflare led to consistent improvements. The improvements were up to 100 ms and 10%. Apart from not liking (and trying to understand) the mixed results for that one domain, Iām now weighing whether the 10% saving is worth the (small) hoops to jump through, and the dependency that would be continued Cloudflare use (who then also provide no support on their free plan).
-
Removing
minimum-scale=1
from project viewport metadata. I donāt believe it hurt, but it didnāt seem necessary anymore, eitherātheminimum-scale=1
part in the<meta name=viewport content="initial-scale=1,minimum-scale=1,width=device-width">
directives Iāve been using forā¦ more than a decade. (What does it do? I refer to MDN!) -
Checking on obsolete HTML elements and attributes. I built ObsoHTML, and of course ran it over my own code base, too. Did I find obsolete HTML code? Yes. Fortunately, not in my own repositories, or where I wouldnāt expect it!
-
Optimizing calls to action. Boy, am I not a marketer! š ābut I do write and sell books. On book pages (take the latest on HTML optimization), I feature a call-to-action button. āBuy now,ā or something like that. It allows to go to one of the usually several book sellers where the respective book is available. Butāthe choice may not be so clear, and interested readers may not want to purchase exactly at the site I recommend. A quick improvement? Include a link to āother options,ā to make it clear if these exist.
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 somewhat close to W3C and WHATWG, 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.
If youād like to do me a favor, interpret charitably (I speak three languages, and they do collide), yet be critical and give feedback, so that I can make improvements. ThankĀ you!
Read More
Maybe of interest to you,Ā too:
- Next: We Always Knew Anyone Could Take Our Content
- Previous: A Web Development Term a Dayā¦
- More under Development or Design
- 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.