Skip to content

Commit d38a4e8

Browse files
committed
Improve internal linking
1 parent e0c4b34 commit d38a4e8

4 files changed

+11
-7
lines changed

_posts/2012-05-15-keep-your-css-selectors-short.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Longer selectors have a higher specificity. Specificity is a nightmare and **you
103103

104104
A selector like `.widget > h2 {}` has a higher specificity (as well as the other problems we discussed) than a selector like `.widget-title {}`.
105105

106-
`.nav li a {}` has a higher specificity than `.nav a` (and is also less efficient). Reducing selector length reduces selector specificity and that is **very important**. High specificity leads to self-induced specificity battles that can only be won by making subsequent selectors _more_ specific (or using `!important`, shame on you). This is a terrible thing. The easiest way to reduce specificity (after _dropping IDs from your CSS **completely**_) is to keep your selectors short.
106+
`.nav li a {}` has a higher specificity than `.nav a` (and is also less efficient). Reducing selector length [reduces selector specificity](/2014/07/hacks-for-dealing-with-specificity/) and that is **very important**. High specificity leads to self-induced specificity battles that can only be won by making subsequent selectors _more_ specific (or using `!important`, shame on you). This is a terrible thing. The easiest way to reduce specificity (after _dropping IDs from your CSS **completely**_) is to keep your selectors short.
107107

108108
## Can Make Code More Forgiving
109109

_posts/2019-08-13-making-cloud-typography-faster.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,12 @@ The response I got shed some light on a few things. To summarise:
244244
* the client was implementing everything correctly;
245245
* the redirect doesn’t ‘release’ the fonts for usage, but actually gathers some
246246
information about your browser and OS and forwards the request to the correct
247-
one of many CSS files that Cloud.typography provide you to self host;
247+
one of many CSS files that Cloud.typography provide you to [self
248+
host](/2019/05/self-host-your-static-assets/);
248249
* The `Location` of the redirect depends heavily on the User Agent making the
249250
request, so you can’t circumvent the trip to Cloud.typography.
250-
* (Author’s note: But make no mistake, the redirect exists primarily for
251-
usage tracking, otherwise they’d cache it.)
251+
* (Author’s note: But make no mistake, the redirect exists primarily for usage
252+
tracking, otherwise they’d cache it.)
252253
* the cloud service is aimed at developers and agencies who might need access to
253254
a larger library to fulfil many different projects;
254255
* the self-hosted option is aimed at companies who have a limited and

_posts/2022-03-28-optimising-largest-contentful-paint.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,9 @@ waterfall almost exactly mimics the fastest `<img />` option:
348348
</figure>
349349

350350
We could also `preload` this image, rather than using an `<img />` element, but
351-
I generally feel that `preload` is a bit of a code smell and should be avoided
352-
if possible.
351+
I generally feel that `preload` is a bit of a [code
352+
smell](/2017/02/code-smells-in-css-revisited/) and should be avoided if
353+
possible.
353354

354355
### Summary
355356

_posts/2025-07-27-the-fastest-site-in-the-tour-de-france.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,9 @@ than that, it’s quite difficult to see what stack they’re on.
883883
must-revalidate` policy.
884884
* This means every page view is a back end-heavy trip to origin:
885885
`cf-cache-status DYNAMIC`.
886-
* They link to a lot of render-blocking resources, including third-party ones.
886+
* They link to a lot of
887+
[render-blocking](/2024/08/blocking-render-why-whould-you-do-that/) resources,
888+
including third-party ones.
887889
* They use Typekit which [contains an
888890
`@import`](/2018/11/css-and-network-performance/#avoid-import-in-css-files)—a
889891
real killer.

0 commit comments

Comments
 (0)