-
#CSS thread. I was excited to finally read @Una’s and @argyleink’s CSS report (almanac.httparchive.org/en/2019/css), part of the @HTTPArchive’s #WebAlmanac. Here are some observations.
-
@Una @argyleink @HTTPArchive #Color count, with a median of about 50 colors per page (!), seems really high, and I like the question respective section ends with: “How can you reduce this number into a manageable and reasonable amount?”
-
@Una @argyleink @HTTPArchive As for #color duplication (median 25 repetitions), custom properties or variables are one option to curb it—the other being using every declaration just once (#UDJO, meiert.com/en/blog/dry-css/). UDJO can be employed intelligently on a component or module level.
-
@Una @argyleink @HTTPArchive Side note: For classes per element, knowing the average seems to be more useful than the median (1). What is it?
-
@Una @argyleink @HTTPArchive The #writing modes section seems off. RTL pages as well as sites with both #LTR and #RTL contents are usually the ones explicit about text directionality, and that asymmetry seems to make interpreting the data difficult to impossible.