Premature optimization is the root of all SEO evil

Knuth's rule has an SEO version. Optimizing a page before you publish it wastes effort, usually damages the page, and spends the one reading that could have told you what to optimize.

9 minpublished stable

Bonnafoux (artist), Charles Laplante (engraver), La vapeur (1876), Fig. 59, Machine à balancier de Watt. Public domain.

How many content briefs have you written that specified a word count?

How often have you used on-page optimization software on content before publishing that content? Or done link building on a page at the same time it was published?

If you have done these things, I hate to be the one to tell you this, but you’re guilty of premature optimization. Donald Knuth, broadly regarded as the doyen of computer programming, made the case against it in 1974, in “Structured Programming with go to Statements”: “We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.” His argument was not that optimizing early fails to make a program faster. It was that the effort is mostly wasted, that it damages the thing you are optimizing, and that the real gains sit in a small fraction of the program you can only locate by measuring.

I’m going to make the case that the same concept is true in SEO, and for three reasons.

First, optimizing on an unknown dimension is not just a waste of time. You can actually make things worse.

Second, the optimization may not be necessary in the first place.

Third, optimizing first destroys the only instrument that could have told you what to optimize (results).

Requirements versus optimizations

Let’s start by defining some terms. And in particular, focusing on what I mean by optimization and how it’s different from what I see as requirements for ranking a document in a search engine’s results for a target query.

What are the requirements?

In my view, most things that do not “tune” are requirements.

To appear in search results on a modern search engine (in the vast majority of cases), you’ll need to provide an HTML document that crawlers can reach and read.

It doesn’t make sense to say “producing an HTML document” is an optimization. That’s just table stakes.

The lines get a little blurry on the fringe of this conversation but I’ll establish a few things I see as simple requirements:

  • The presence of the targeted search query in the document. And yes, I’m aware that this is not strictly necessary as evidenced by pages that rank for queries purely through the presence of those queries in inlink anchor text but let’s be realistic.

  • The right kind of document. If the query calls for a comparison between two treatments and you’ve published a service page, nothing else you do to that page matters.

  • A server the fetcher can actually get a response from. If the crawler gives up before your server answers, you simply will not rank. This one has no caveat.

That may seem like an odd set of things to call requirements. The reason is clearer with the other half on the table, so let’s contrast them with optimizations.

And what are optimizations?

In short, anything that is a property of the document in relation to other documents is an optimization.

fig. 1 — an arc-lamp regulator. One adjusting head at the top, and it is turned against what the instrument reads.Régulateur Foucault et Duboscq, from Trousset's Nouveau dictionnaire encyclopédique universel illustré, 1885–91.

A target query is a given of the problem rather than one of the things being related. What makes something an optimization is that its value depends on what the other documents competing for that query happen to be doing.

If you can think of it as a dial to turn, it’s an optimization. If you can think of it as a switch to flip, it’s a requirement.

And, more specifically, if that dial can be turned too far in one direction, it’s an optimization.

You cannot optimize a page in isolation. Any more than you can tune a violin string without hearing the sound it makes. These optimizations only make sense by their relation to other things.

So, here are some things I consider to be ranking optimizations:

  • Target keyword density. It shouldn’t be controversial that repeating the target keyword helps a document rank for a query, up to a point. And it should be equally uncontroversial that past that point, repeating it more hurts.

  • The number of words in a document. Importantly, I’m not claiming that word count is a “ranking factor”, but rather that past a certain number of words, adding more stops helping the page and starts working against it.

You’ll notice the same words doing two different jobs here. Whether the target query appears in the document is a requirement. How often it appears is an optimization. One is a switch and the other is a dial, and the only thing separating them is whether the answer depends on what is in other documents like it.

Why optimizing early is worse than not optimizing at all

If I’ve convinced you that there is a difference between optimizations and requirements, that’s great. But it doesn’t necessarily follow that optimizing from the start is a bad thing.

After all, we could make the case that there are some optimizations that feel like requirements that we may as well kick off without really looking at what we’re optimizing against.

And this is especially attractive if you’ve been doing SEO for a long time. You won’t be able to help but see the pattern that makes some optimizations appear as though they’re just table stakes.

Well, I’m going to try to convince you that’s not the case.

And here’s why:

1. You CAN hurt your chances at ranking

I’ll return to the analogy of tuning an instrument.

Suppose you’re tuning a violin. If a violin string is too slack, it won’t play at all. In other words, there’s clearly a tension requirement for the string to even behave as a violin string.

However, turn the string’s peg enough in search of the right pitch and you’ll end up snapping it. So there’s clearly such a thing as an over-optimized string.

Similarly, if you publish a page with 30% target keyword density, it will barely look like it’s written in a coherent language. Your string snaps.

But there’s a second kind of over-optimization, more common than the first and, I’d argue, more damaging, because it doesn’t snap the string.

Say you’re tempted to publish a service landing page targeting “dental veneers in Plano, TX” with 3500 words, because that’s the average across the top ten results for the keyword. That page might rank perfectly well.

It is still obviously worse at its job, which is getting someone to buy dental veneers, than a page simply stating the service, its price, and its scope in 800 words. Not because a search engine won’t like it, but because it’s just a bad landing page.

And this second harm is the one you can confirm today, without accepting a single claim about how a search engine works.

The analogy doesn’t hold quite as cleanly for documents as it does for strings. But the shape holds: there’s a tension below which the string is useless, and a tension above which you’ve ruined it.

2. You may be wasting effort and time

For this point, let’s think about putting up a flier on a community message board. And it’s a flier advertising, wouldn’t you know it, dental veneers.

One way to do it would be to get the flier printed on glossy hard stock, add glitter in places to punctuate it visually, make it huge so that it covers as many of the other fliers as it can, and post it. That would certainly increase the chances of getting an “impression”.

However, suppose someone did all that and arrived to find an empty message board. All of that work to stand out is suddenly wasted, because the flier was going to draw attention by being the only flier on the board.

And if the board isn’t empty, glitter still isn’t the obvious move either. You can go and find a different board. Being more careful about which keyword you target is the same decision, and it’s usually the better one, because it changes what you’re competing for rather than how hard you compete for it.

So why run the page through on-page optimization software, buy links in advance (yes, it happens), or add speculative structured data, all before knowing whether the page needs any of it?

Only in very rare instances do I have all the resources I need to do everything that could be done for a page or a site. Spending them on a page that would have ranked anyway is not spending them on the page that actually needed help.

We can push this metaphor too far so I’ll stop there. Call it Minimum Viable SEO: publish the smallest version that genuinely does the job, and let the results tell you whether it needs anything else.

To be clear, I’m not advocating for a programmatic approach to SEO, which isn’t always incorrect but is a different thing entirely. I’m talking about being more selective about which optimizations to implement, and when.

3. Optimizing first breaks the machinery of SEO

SEO is a diachronic process rather than something you set and forget.

If you optimize a document before publishing it, you defeat the feedback cycle of publish, rank, optimize, rank. You’re throwing a wrench into the mechanism that lets you know whether you’re doing things right.

Every document on your site that just ranks without much effort is a data point. So is every document you throw the kitchen sink at that doesn’t rank; that one tells you a lot about the site as a whole.

If you’re always throwing the kitchen sink at every page, the information about where you’re well positioned to rank and where you have no chance loses resolution.

fig. 2 — two manometers. The graduated scale is the part you cannot fit after the fact.Trousset's Nouveau dictionnaire encyclopédique universel illustré, 1885–91.

And the instrument isn’t hypothetical. Impressions show up before clicks do, and they show up for queries you never targeted. That’s the closest thing to a reading you get, and it only exists for pages you actually published.

And you can’t go back for the reading. You shipped the page with all the optimizations on it and it settled at position 14. Which of the optimizations did that?

Would it have been 12 with none of them? There’s no control and no rerun, because the site has moved, the SERP has moved, and the page is already indexed. One shot per page, and you spent it before taking a measurement.

Why premature optimization is so prevalent, and what to do instead

Now I’ll make the most controversial claim of this piece, which is why I think we’re still doing optimization prematurely. Other than it being taught to incoming SEOs as the standard practice.

Premature optimization persists because it is visible and sellable. An agency can invoice a content optimization pass, a link campaign, a schema implementation. However, it’s much harder to sell a client on shipping a plain page and waiting six weeks to see what happens, even when that is the correct advice.

The incentive is not to deceive anyone; it is that visible work is easier to charge for than a deliberate absence of work.

So what does the alternative actually look like, and how do you sell it?

Start by noticing that it isn’t less work. That’s the assumption that makes it unsellable, and it isn’t true.

Satisfy the requirements. All of them, immediately, on every page.

They’re switches, you can verify them yourself, and you can’t overshoot them, so there’s nothing to wait for. Most of what gets called a technical audit is exactly this (or it ought to be).

Then ship the honest version of the page. The one that does the job it was built to do, in the format the query calls for, and nothing else. It goes live in a fraction of the time the optimized version would have taken.

And there’s still honest work there. Identifying the correct query to target, identifying what the SERP is actually serving, and identifying the basic requirements it will take to compete in that SERP are all time-consuming tasks.

Then let the page tell you something. Impressions turn up before clicks do. Queries turn up that you never targeted. The position settles somewhere. That’s your temperature reading, and you can’t get it by “warming up” the page beforehand.

Then turn one dial.

One, because clean readings are scarce and firing everything at once costs you the next one.

The time you didn’t spend optimizing page one goes into publishing pages two through nine. You end up doing roughly the same amount of work. You’re just doing it to pages that have told you they need it.

Now, there’s a separate question about how business goals intersect with SEO goals and how conflicting interests in an organization can derail these efforts. That’s outside the scope of this discussion, though, so I’ll give my view on it in another post.

first principlesoptimizationmeasurement