<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Cody Wang</title>
    <description>The latest articles on DEV Community by Cody Wang (@amazong110).</description>
    <link>https://dev.to/amazong110</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4139050%2F9d60ef5c-4ccd-4154-876e-9f056d978f9a.jpg</url>
      <title>DEV Community: Cody Wang</title>
      <link>https://dev.to/amazong110</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amazong110"/>
    <language>en</language>
    <item>
      <title>My hit log counted 36 humans. One row came from Google.</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Fri, 20 Nov 2026 04:05:43 +0000</pubDate>
      <link>https://dev.to/amazong110/my-hit-log-counted-36-humans-one-row-came-from-google-37d0</link>
      <guid>https://dev.to/amazong110/my-hit-log-counted-36-humans-one-row-came-from-google-37d0</guid>
      <description>&lt;p&gt;I ship one sales page a week. T1 Harbor Counsel went up on 9 November, T2 Northmark on the 12th, T3 Summit Legal on the 16th. Before writing a fourth, I did the thing I'd been avoiding: I instrumented the site and looked at who actually arrives.&lt;/p&gt;

&lt;p&gt;The logger is about thirty lines in a Next.js route handler. It appends one JSONL row per pageview: timestamp, path, referrer, viewport width, language, a user agent cut at 120 characters, and a boolean from a regex. No cookie, no IP, no third-party script. That last part is a decision with a cost, and the cost is the rest of this post.&lt;/p&gt;

&lt;p&gt;Eleven days of rows: 45. Nine are flagged as bots. Thirty-six are not. That number felt good for about ten minutes.&lt;/p&gt;

&lt;p&gt;Then I sorted by timestamp. Twenty-one rows arrive inside nineteen seconds, all from one user agent, all at a 1919px window: &lt;code&gt;/&lt;/code&gt;, &lt;code&gt;/contact-us&lt;/code&gt;, &lt;code&gt;/about-us&lt;/code&gt;, &lt;code&gt;/team&lt;/code&gt;, &lt;code&gt;/imprint&lt;/code&gt;, &lt;code&gt;/impressum&lt;/code&gt;, &lt;code&gt;/legal&lt;/code&gt;, &lt;code&gt;/privacy&lt;/code&gt;, &lt;code&gt;/terms&lt;/code&gt;, &lt;code&gt;/privacy-policy&lt;/code&gt;, then seven template pages in under four seconds. Nobody opens impressum and privacy-policy 200ms apart. It is a link checker, and it got counted as a human twice over, because I had quietly treated "not flagged" as "a person".&lt;/p&gt;

&lt;p&gt;Why did it slip through? My filter is &lt;code&gt;/bot|crawler|spider|headless/i&lt;/code&gt;, and the user agent was a plain Chrome string on X11. A cheap filter only catches bots that confess in their name. The ones that cost you anything don't.&lt;/p&gt;

&lt;p&gt;The mirror case is worse. Nine rows are flagged and, when I open them, the stored user agent ends at &lt;code&gt;(compati&lt;/code&gt;, cut at the 120-character limit with the bot token past the cut. I have rows I know are bots and cannot name. I traded storage bytes for diagnosis and lost the diagnosis. Storing the matched token instead of the raw string would have cost fewer bytes and named the crawler.&lt;/p&gt;

&lt;p&gt;Then there is the block of eight rows on 17 November: 15:49:01 to 15:50:43, all to &lt;code&gt;/&lt;/code&gt;, one user agent, Chrome 114 on a Mac, every one at 1280px. My own capture scripts render at 1440. Either someone on an old Chrome reloaded the homepage eight times in 102 seconds or a monitor did, and no field in my log can tell me which. Without a cookie or an IP, a first-party log cannot subtract itself. That is not a bug I can patch; it is the price of the design.&lt;/p&gt;

&lt;p&gt;Two of the seven remaining rows are self-referrals from my own other domain: internal navigation, not acquisition. One arrives from google.com on 17 November, en-GB, landing on &lt;code&gt;/templates/rooks-salon&lt;/code&gt;, a template detail page, not the homepage. Two more, on the 18th, are a Mac at 1470px with a Chinese locale going homepage, then &lt;code&gt;/contact&lt;/code&gt;, 34 seconds later. That sequence is the only one in eleven days that looks like a person reading.&lt;/p&gt;

&lt;p&gt;So the honest tally for eleven days of work is three rows that plausibly belong to strangers, one of them from search, and it landed on a page untouched by any of the three sales pages I was proud of.&lt;/p&gt;

&lt;p&gt;Which changes what I do next. I was going to spend this week on a fourth sales page in the same shape, a fourth variation of stat band, three lanes, process, intake. The rows say the bottleneck is not the sales page, because nothing points at one. The only entry point search bothered to use was a detail page. So the next block of hours goes into the twenty-five template pages already in the sitemap of &lt;a href="https://slicelab.prismicaudit.com/" rel="noopener noreferrer"&gt;Slice Lab&lt;/a&gt; — real titles, and one honest paragraph each about what the layout argues — instead of a fourth landing page nobody enters through.&lt;/p&gt;

&lt;p&gt;I know forty-five rows prove almost nothing. That is the other half of the tradeoff: a log small enough to read in one sitting is too small to test anything. I am trusting it for direction only, and the direction is to stop polishing the door nobody walks through.&lt;/p&gt;

&lt;p&gt;The same measurement problem is what I chase on client sites, with header and render checks instead of logs — that work lives at &lt;a href="https://prismicaudit.com/" rel="noopener noreferrer"&gt;prismicaudit.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>analytics</category>
      <category>nextjs</category>
      <category>marketing</category>
    </item>
    <item>
      <title>I sell $29 Next.js templates with no checkout button, on purpose</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Tue, 17 Nov 2026 04:02:10 +0000</pubDate>
      <link>https://dev.to/amazong110/i-sell-29-nextjs-templates-with-no-checkout-button-on-purpose-2m43</link>
      <guid>https://dev.to/amazong110/i-sell-29-nextjs-templates-with-no-checkout-button-on-purpose-2m43</guid>
      <description>&lt;p&gt;Three sales pages went up in eight days: Harbor Counsel on the 9th, Northmark on the 12th, Summit Legal on the 16th. All three are Next.js homepages for small professional firms, all three cost $29, and all three end the same way — "Email us to order. Write 'T3' in the message." No cart, no account, no Stripe keys, no webhook handler.&lt;/p&gt;

&lt;p&gt;That last part is the decision people push back on, so here is the trade rather than the preference.&lt;/p&gt;

&lt;h2&gt;
  
  
  A cart would have bought me a week of work and no information
&lt;/h2&gt;

&lt;p&gt;The obvious path was Stripe Checkout plus a signed download link. Realistically that is a week: tax handling for buyers in countries I cannot name, refunds, delivery for a 40MB ZIP, and an email that still has to be sent by hand. Every one of those pieces is a failure mode I would be debugging at 2am instead of looking at whether the page persuades anyone.&lt;/p&gt;

&lt;p&gt;What I get instead is an invoice and a reply. The reply tells me what the buyer is building and whether they wanted the site built for them. That is the product I actually sell; the $29 file is the sample that proves it is real.&lt;/p&gt;

&lt;p&gt;The cost is real and I am paying it: anyone who will not write an email at 1am is gone. I decided that was acceptable while the pages are days old and unproven. It stops being acceptable the moment the email step is the reason a sale dies, and I will not know that from a dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  $29 prices a sample, not a website
&lt;/h2&gt;

&lt;p&gt;Pricing a template at the cost of two coffees is not generosity, it is positioning. The money in this business is in building and maintaining the site afterwards, so the template has one job: convince a stranger in ninety seconds that the code behind it is finished. Low price plus high finish is the cheapest credibility I can buy.&lt;/p&gt;

&lt;p&gt;The risk is equally plain: a low price attracts people who want a $29 custom site. The pages filter them by stating what the ZIP is not — no CMS, no database, no subscription, content edited in one JSON file.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I deleted so three pages would not be one page
&lt;/h2&gt;

&lt;p&gt;All three share five sections and one data file, and differ in the hero: a word-block with a highlighted phrase, an editorial full-bleed photograph, a stat band over a skyline with a scrolling outcomes strip. Everything else was subtraction — no logo carousel, no badge wall, no twenty-item services menu. Four lanes in one, three practice cards in another, three numbered process steps in each.&lt;/p&gt;

&lt;p&gt;I also paused the template station that was supposed to produce the next batch, on the same day I shipped the third page. Eight pages sharing one skeleton is a colour scheme, not a catalogue.&lt;/p&gt;

&lt;h2&gt;
  
  
  The parts that could have been lies, and are labelled instead
&lt;/h2&gt;

&lt;p&gt;The strongest page opens with counters — attorneys, years, intake hours — and a ticker of verdicts and settlements. Those figures are sample copy, and the page says so in the eyebrow, because advertising outcomes is regulated in most jurisdictions a buyer would deploy into. The ticker also stops for visitors who ask for reduced motion.&lt;/p&gt;

&lt;p&gt;That costs me the most persuasive screenshot in the set. The alternative was a page that looks better and puts a buyer in front of a regulator.&lt;/p&gt;

&lt;h2&gt;
  
  
  The only step I did not hand off
&lt;/h2&gt;

&lt;p&gt;Before anything ships I run the page through the detector I wrote at &lt;a href="https://prismicaudit.com/" rel="noopener noreferrer"&gt;prismicaudit.com&lt;/a&gt;, mostly to catch the boring failures — a missing canonical, a description that does not match the page. It is my own tool, so I treat its output as a checklist, not a verdict.&lt;/p&gt;

&lt;p&gt;The bet, stated so it can be wrong: a $29 ZIP that runs on &lt;code&gt;npm install &amp;amp;&amp;amp; npm run dev&lt;/code&gt; with no CMS account is the cheapest proof that the build work behind it is worth paying for. Testing it cost three pages and eight days. The catalogue is at &lt;a href="https://slicelab.prismicaudit.com/" rel="noopener noreferrer"&gt;slicelab.prismicaudit.com&lt;/a&gt;, where each page still ends with an email address instead of a button.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>freelancing</category>
      <category>design</category>
      <category>webdev</category>
    </item>
    <item>
      <title>My Page-Height Budget Passed at a Width I Never Shipped</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Fri, 13 Nov 2026 04:01:04 +0000</pubDate>
      <link>https://dev.to/amazong110/my-page-height-budget-passed-at-a-width-i-never-shipped-1h01</link>
      <guid>https://dev.to/amazong110/my-page-height-budget-passed-at-a-width-i-never-shipped-1h01</guid>
      <description>&lt;p&gt;A homepage template I shipped this week has a page-height claim in its copy and a full-page screenshot directly under it. The two numbers disagree by roughly two thousand pixels. I published it anyway, and that disagreement is the most useful thing I ran into all week.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule came out of nine failures
&lt;/h2&gt;

&lt;p&gt;Before writing a new template I set a spec for myself: at most five sections, total page height under 3,400px including header and footer. The number wasn't a guess. The previous nine pages in my pool measured between 4,197 and 5,160px, and each one shared the same defect - the buy control sat below a screen and a half of scrolling, and nothing above the fold said what the product actually was. So I capped height and tested every page against it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The number in the copy versus the number in the picture
&lt;/h2&gt;

&lt;p&gt;Three pages came out of that pass.&lt;/p&gt;

&lt;p&gt;T1, a counsel homepage, says "five sections, 3,295px end to end," and its preview image is 900 x 3,295. That one matches. T2, a studio homepage, says "about 5,350px," and its preview is 900 x 3,383. T18, a residential builder page, says "3,400px," and its preview is 900 x 2,073.&lt;/p&gt;

&lt;p&gt;So two of three pages disagree with themselves. Nothing in the layouts is broken. What happened is that I measured height while checking the page at 1440px wide, and I captured the preview at 900px wide, where the grids collapse to one column and the text reflows into more lines. Both numbers were true. They were never true at the same time.&lt;/p&gt;

&lt;p&gt;The lesson is dull and total: a number without its viewport is a rumor, and a spec that doesn't name the width it applies to can't be tested. Every height I record now carries the width beside it, and I re-measure at 390 before calling a page done. It is bookkeeping rather than craft, and it caught the gap between passing a budget and shipping a page that reads short.&lt;/p&gt;

&lt;h2&gt;
  
  
  The screenshot script had its own trap
&lt;/h2&gt;

&lt;p&gt;Full-page capture through the Chrome DevTools Protocol needed three fixes. Use &lt;code&gt;Page.captureScreenshot&lt;/code&gt; with &lt;code&gt;captureBeyondViewport&lt;/code&gt; and a clip taken from &lt;code&gt;Page.getLayoutMetrics&lt;/code&gt;, or you get the visible viewport and nothing else. Scroll the whole page once before capturing, roughly 0.3s per step, then return to top - images that lazy-load below the fold otherwise render as empty boxes inside an otherwise flawless screenshot. And the third fix had nothing to do with the browser: the websocket on &lt;code&gt;127.0.0.1:9222&lt;/code&gt; kept dying until I bypassed the proxy for localhost. This machine routes traffic through a tunnel, and the tunnel has no idea that 127.0.0.1 means "here." Two lines of &lt;code&gt;no_proxy&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The channel I dropped on purpose
&lt;/h2&gt;

&lt;p&gt;I had listing material prepared for five distribution channels. Only one was genuinely close to ready. ThemeForest wanted a static HTML main file; the templates are App Router projects. Converting them properly was 21 to 35 hours per SKU. I dropped the marketplace rather than half-do it, and pointed the effort at pages I control instead: &lt;a href="https://slicelab.prismicaudit.com/" rel="noopener noreferrer"&gt;https://slicelab.prismicaudit.com/&lt;/a&gt; now lists the templates at $29 with no checkout. The button opens a mail link, you name the template, I send the ZIP and an invoice by email.&lt;/p&gt;

&lt;p&gt;That trade has a cost, and I'd rather name it than sell it. No impulse purchase, no abandoned-cart data, and no way to learn why someone closed the tab. What I bought with it: zero payment surface to secure, and an evening of shipping instead of a fortnight of packaging.&lt;/p&gt;

&lt;h2&gt;
  
  
  The referral log was mostly me
&lt;/h2&gt;

&lt;p&gt;Five days of hits across the site: five records, one flagged as a bot by its user agent. Of the four human-looking hits, exactly two carried a referrer - my own &lt;a href="https://prismicaudit.com/" rel="noopener noreferrer"&gt;https://prismicaudit.com/&lt;/a&gt; - both with a zh-CN locale, which is the machine I was working on. The rest came in direct and blank.&lt;/p&gt;

&lt;p&gt;Which means the honest reading of "traffic" right now is that I am the traffic. That's worth writing down before I start tuning anything for an audience that isn't there yet: the first job isn't conversion, it's getting a referrer that isn't my own domain.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>performance</category>
      <category>showdev</category>
    </item>
    <item>
      <title>I retired the visual page builder and kept its server running for one route</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Tue, 10 Nov 2026 04:02:47 +0000</pubDate>
      <link>https://dev.to/amazong110/i-retired-the-visual-page-builder-and-kept-its-server-running-for-one-route-3ojm</link>
      <guid>https://dev.to/amazong110/i-retired-the-visual-page-builder-and-kept-its-server-running-for-one-route-3ojm</guid>
      <description>&lt;p&gt;On November 8 I retired the visual page builder. Not parked, not moved to a branch — retired. &lt;code&gt;build.html&lt;/code&gt;, &lt;code&gt;builder.js&lt;/code&gt;, &lt;code&gt;editor-*.js|css&lt;/code&gt;, &lt;code&gt;puck-editor/&lt;/code&gt;. The note I left in the repo says it plainly: the visual slice builder is retired as a product.&lt;/p&gt;

&lt;p&gt;What made it a decision rather than a cleanup: I could name a feature I had added to the builder every week for months, and I could not name a single page a stranger had paid for. Eighteen complete templates sat in the pool, and none of them had a price on them anywhere on the internet. The builder was the most interesting thing in the repository and the least useful thing in the business.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it actually cost to remove
&lt;/h2&gt;

&lt;p&gt;Removing a product is not a file operation. It is a graph traversal, and the graph is the part nobody budgets for.&lt;/p&gt;

&lt;p&gt;Three things pointed at the builder. Cloudflare tunnel ingress had a &lt;code&gt;builder.prismicaudit.com&lt;/code&gt; hostname, with DNS pointed at it — both gone, and I copied the pre-change ingress to a JSON file first, because a tunnel ingress is the kind of config where "I'll remember what it was" is a lie. The buyer-facing story also broke: with no editor, the only way to change the page is &lt;code&gt;data/templates.json&lt;/code&gt;, one file, text between quotes. That is a real downgrade in flexibility. I am not going to pretend a JSON file is a better editing experience; it is a smaller support surface, which is a different claim.&lt;/p&gt;

&lt;p&gt;The third thing is the one I would have missed if I had rushed: &lt;code&gt;server.py&lt;/code&gt; still runs. Not from sentiment. &lt;code&gt;site-next/app/api/order/route.js&lt;/code&gt; proxies order intake to &lt;code&gt;127.0.0.1:8791/api/order&lt;/code&gt;, so the process that used to serve the builder is still the process that catches orders. It now binds loopback only. Half of deleting a feature is finding what quietly still calls it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the green build lied to me
&lt;/h2&gt;

&lt;p&gt;The repository gate runs in about a second: &lt;code&gt;templates.json&lt;/code&gt; must parse, hold exactly eighteen entries with ids &lt;code&gt;t1..t18&lt;/code&gt; contiguous and slugs unique, every thumb and section image must exist on disk, no conflict markers, no truncated markers pasted into docs. That gate passing tells me the data is coherent. It has never told me the page looks right, and for a while I treated those as the same statement.&lt;/p&gt;

&lt;p&gt;So the gate now has to be able to fail on purpose: &lt;code&gt;make test-gate&lt;/code&gt; hides one thumbnail and asserts a non-zero exit code. A gate nobody has watched go red is decoration. That test changed how I read every other green check from tooling — passing means the check ran, not that the thing works.&lt;/p&gt;

&lt;p&gt;Same logic on styles: I only add scoped rules, and touching the shared stylesheet or theme variables counts as a global change that requires before/after screenshots of the whole site. A CSS diff cannot be reviewed by reading it. Two images can.&lt;/p&gt;

&lt;h2&gt;
  
  
  The constraint that made the choice
&lt;/h2&gt;

&lt;p&gt;This runs on a two-core box with no display, so visual checks are one browser, serial, headless. CI stays on GitHub's runners — a self-hosted runner would share the machine and its credentials with the agent gateway that does the deploying, and I am not merging those blast radii to save a few seconds.&lt;/p&gt;

&lt;p&gt;So the shipping path is static: build once, deploy an artifact. The storefront for the newest template is a single 12KB HTML file in &lt;code&gt;dist/sale&lt;/code&gt;, deliberately untracked, because it is an artifact and the source tree is what deserves history. The consequence: the storefront has no version history. Accepted.&lt;/p&gt;

&lt;p&gt;That page sells one layout for $29 with no checkout — email, invoice, ZIP. The gallery shows full 3,295px renders rather than hero crops, because a template buyer is buying the bottom of the page as much as the top: &lt;a href="https://slicelab.prismicaudit.com/" rel="noopener noreferrer"&gt;https://slicelab.prismicaudit.com/&lt;/a&gt; . It is the same argument the audit tool makes over at &lt;a href="https://prismicaudit.com/" rel="noopener noreferrer"&gt;https://prismicaudit.com/&lt;/a&gt; — show the evidence, not the dashboard.&lt;/p&gt;

&lt;p&gt;I cannot tell you the retirement increased sales; there is no data yet and I will not invent any. What I can attribute: one fewer product to keep alive, one process left running on purpose, and a page you can read in a text editor.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>discuss</category>
      <category>productivity</category>
    </item>
    <item>
      <title>18 templates were finished and zero were sellable — the blocker was a license</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Sun, 08 Nov 2026 02:12:22 +0000</pubDate>
      <link>https://dev.to/amazong110/18-templates-were-finished-and-zero-were-sellable-the-blocker-was-a-license-l6d</link>
      <guid>https://dev.to/amazong110/18-templates-were-finished-and-zero-were-sellable-the-blocker-was-a-license-l6d</guid>
      <description>&lt;p&gt;Eighteen templates were finished. Not "mostly finished" — done: each one builds, each one ships a real page, each one has a long preview, copy, and tokens. And not one of them was sellable. The blocker wasn't code. It was one document that said the wrong thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The file that was doing the opposite of its job
&lt;/h2&gt;

&lt;p&gt;My repo had a &lt;code&gt;LICENSE.md&lt;/code&gt;, written months earlier, from the perspective of someone publishing source:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;You may not&lt;/strong&gt; resell, redistribute, share, or sublicense the template pack … publish the pack on marketplaces (Gumroad, ThemeForest, etc.) …&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;As a repo license, that's correct. As a &lt;em&gt;buyer&lt;/em&gt; license, it's a disaster: a paying customer opens the ZIP, reads "you may not publish this on marketplaces," and reasonably concludes they can't use it for the thing they bought it for. The file wasn't wrong about the rules. It was written for the wrong reader.&lt;/p&gt;

&lt;p&gt;Two more holes sat next to it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Photos.&lt;/strong&gt; The demo pages are built on Unsplash photography. Unsplash's license lets you use the photos, but not redistribute them as a competing collection — and a template ZIP is exactly that. Shipping the demo images would have made every sale a small copyright problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nothing said what was granted.&lt;/strong&gt; No line saying "you may use this on client sites and charge for it." No line saying "one license, unlimited client projects." The absence of a grant is not a grant.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The uncomfortable part: I'd been treating "the product" as the thing in the ZIP. The ZIP was fine. The product includes the terms.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the buyer license actually has to say
&lt;/h2&gt;

&lt;p&gt;I wrote &lt;code&gt;LICENSE-BUYER.md&lt;/code&gt; as a short, plain document — the kind you can read in ninety seconds and answer "can I use this for a client?" without emailing anyone:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Granted:&lt;/strong&gt; use on your own and your clients' sites; modify copy, layout, tokens, images, code; charge clients for design, customization, hosting; keep derivative sites online indefinitely; one license, unlimited client projects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not granted:&lt;/strong&gt; reselling or redistributing the pack itself (the ZIP, the source project, or substantially unmodified templates) as a competing template product; uploading it to marketplaces or free template directories; claiming authorship of the original compositions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Explicitly scoped:&lt;/strong&gt; photography is &lt;em&gt;not&lt;/em&gt; included. The shipped pack contains generated placeholder images; the Unsplash photos in the live demo stay with the demo, and the credit manifest travels with the pack so anyone who swaps in their own Unsplash images keeps the attribution trail intact. Fonts are SIL OFL, self-hosted at build time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Warranty:&lt;/strong&gt; as-is. No implied fitness, no support contract hidden in a footer.&lt;/p&gt;

&lt;p&gt;Two structural details that mattered more than the wording:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;It's a separate file from the repo license,&lt;/strong&gt; and the repo license now opens by pointing buyers to it. One file for people reading the source, one for people who paid. Mixing them is how you get a legal document that contradicts itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The build script strips the photos and generates 145 placeholders.&lt;/strong&gt; The ZIP is 2.97 MB, runs out of the box, and contains nothing that can't be redistributed.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why this is a product problem, not a legal chore
&lt;/h2&gt;

&lt;p&gt;The temptation is to file licensing under "paperwork, later." But the license is what converts work into inventory. Until it exists:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can't list the thing anywhere without lying about what buyers get.&lt;/li&gt;
&lt;li&gt;You can't answer the first support email, because the answer is the license.&lt;/li&gt;
&lt;li&gt;Every day of "I'll write it later" is a day the asset has zero market value despite being finished.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 18 templates took weeks. The license took forty minutes. The forty minutes is what made the other weeks count.&lt;/p&gt;

&lt;p&gt;If you're sitting on a finished asset that isn't selling, check the least glamorous file in the repo first. Mine said "you may not" and I'd stopped reading it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I build these homepage templates and the audits that keep them fast: &lt;a href="https://slicelab.prismicaudit.com/" rel="noopener noreferrer"&gt;SliceLab&lt;/a&gt; · &lt;a href="https://prismicaudit.com/" rel="noopener noreferrer"&gt;PrismicAudit&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>opensource</category>
      <category>business</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>My 'live' page returned 401 for everyone but me</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Sun, 08 Nov 2026 02:11:31 +0000</pubDate>
      <link>https://dev.to/amazong110/my-live-page-returned-401-for-everyone-but-me-5e03</link>
      <guid>https://dev.to/amazong110/my-live-page-returned-401-for-everyone-but-me-5e03</guid>
      <description>&lt;p&gt;A page I shipped this morning was live, public, and completely invisible to anyone who didn't own my laptop. It took me four checks to notice that the fourth one was the only one that meant anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;I deployed a static sales page to Vercel. The CLI printed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Production: https://slice-t18.vercel.app [READY]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;READY&lt;/code&gt; means the build succeeded. It does not mean a stranger can see it.&lt;/p&gt;

&lt;p&gt;My first check was &lt;code&gt;curl https://slice-t18.vercel.app&lt;/code&gt; from the box that did the deploy. It returned nothing — connection reset. My second and third attempts got &lt;code&gt;000&lt;/code&gt; and an SSL error. At that point the rational conclusion was "the deployment is broken."&lt;/p&gt;

&lt;p&gt;That was wrong. Two unrelated things were happening:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The site was behind Deployment Protection.&lt;/strong&gt; Vercel projects created recently default to &lt;code&gt;deploymentType: all_except_custom_domains&lt;/code&gt; — every &lt;code&gt;*.vercel.app&lt;/code&gt; URL requires a Vercel login except on domains you've added yourself. Anonymous visitors get a 401. The project was working exactly as configured, and that configuration meant "private."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;My network can't resolve &lt;code&gt;*.vercel.app&lt;/code&gt;.&lt;/strong&gt; DNS was poisoned to a parked IP and the TLS handshake got reset. So my curl never reached Vercel at all — it failed before HTTP even started.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For ten minutes I was debugging the wrong layer, and the evidence I was collecting couldn't distinguish "401" from "blocked."&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule: verify from a network you don't control
&lt;/h2&gt;

&lt;p&gt;Local &lt;code&gt;curl&lt;/code&gt; answers "can &lt;em&gt;this machine&lt;/em&gt; reach it." That's a useful question for debugging your own connectivity. It is not a verification of a public site, and its failure is not evidence of a broken deploy.&lt;/p&gt;

&lt;p&gt;What actually settled it was asking a third party to fetch the page and hand back what it saw. The Vercel API told me the deployment was &lt;code&gt;READY&lt;/code&gt;; an external metadata service returned:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"success"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"T18 · Stonebridge Build — Next.js homepage template for builders"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's three independent facts in one call: the DNS resolves somewhere else in the world, TLS works there, and the HTML is the one I shipped. No login involved, which also proves the protection is off.&lt;/p&gt;

&lt;p&gt;The fix itself was one PATCH:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; PATCH https://api.vercel.com/v9/projects/&lt;span class="nv"&gt;$PROJECT_ID&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$VERCEL_TOKEN&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"ssoProtection": null}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that, anonymous access worked. But I'd have made the same PATCH eventually even without verification — I just wouldn't have known whether it worked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The general shape
&lt;/h2&gt;

&lt;p&gt;Every "is it live?" check is only as good as the vantage point:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Proves&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Build says READY&lt;/td&gt;
&lt;td&gt;Files were uploaded and compiled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;curl&lt;/code&gt; locally&lt;/td&gt;
&lt;td&gt;Your machine can (or can't) reach it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Browser on your machine&lt;/td&gt;
&lt;td&gt;Same, with cookies and cache in the way&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fetch from outside your network&lt;/td&gt;
&lt;td&gt;A stranger sees it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fetch from outside + assert content&lt;/td&gt;
&lt;td&gt;A stranger sees &lt;strong&gt;the right thing&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Only the last two are shipping. The rest are debugging.&lt;/p&gt;

&lt;p&gt;There's a nasty asymmetry here worth naming: &lt;strong&gt;network failure and application failure look identical from inside a broken network.&lt;/strong&gt; Both present as "no response." The instinct is to keep re-running the same command faster, which produces the same ambiguity. The fix is to change the observer, not the command.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I changed in my process
&lt;/h2&gt;

&lt;p&gt;Two small things, both cheap:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Any deploy ends with a fetch from an external service, asserting the title.&lt;/strong&gt; Not a status code — a title. A 200 that serves a login page or a parked domain passes a status check and fails this one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A local &lt;code&gt;curl&lt;/code&gt; failure gets logged as "unknown," never as "down."&lt;/strong&gt; Especially on hosts like &lt;code&gt;*.vercel.app&lt;/code&gt;, &lt;code&gt;*.netlify.app&lt;/code&gt;, or anything behind a CDN that gets blocked regionally. I don't get to declare a site broken based on a network I can't trust.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The page is live: &lt;a href="https://slice-t18.vercel.app" rel="noopener noreferrer"&gt;slice-t18.vercel.app&lt;/a&gt;. It was also live the entire time I was calling it broken.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I build these homepage templates and the audits that keep them fast: &lt;a href="https://slicelab.prismicaudit.com/" rel="noopener noreferrer"&gt;SliceLab&lt;/a&gt; · &lt;a href="https://prismicaudit.com/" rel="noopener noreferrer"&gt;PrismicAudit&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>devops</category>
      <category>vercel</category>
      <category>productivity</category>
    </item>
    <item>
      <title>A subdomain is a product decision, not a hosting decision</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Sun, 08 Nov 2026 02:11:27 +0000</pubDate>
      <link>https://dev.to/amazong110/a-subdomain-is-a-product-decision-not-a-hosting-decision-3pa2</link>
      <guid>https://dev.to/amazong110/a-subdomain-is-a-product-decision-not-a-hosting-decision-3pa2</guid>
      <description>&lt;p&gt;I added two subdomains to my own product domain today. Then I deleted both, about forty minutes apart. The interesting part isn't the deletion — it's that neither one was a hosting decision. Both were product decisions I made by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  The convenience trap
&lt;/h2&gt;

&lt;p&gt;The setup: &lt;code&gt;prismicaudit.com&lt;/code&gt; is my audit product. Its DNS is on Cloudflare, with a tunnel pointing at services on one small box — the main site on one port, a slice builder on another, a preview environment on a third. Each new app got a hostname because a hostname was the path of least resistance:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;prismicaudit.com        → :8787
slicelab.               → :5300
builder.                → :8791
puck.                   → :5199
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I started selling homepage templates. Template #18 needed a sales page. The fastest thing to type was &lt;code&gt;t18.prismicaudit.com&lt;/code&gt;. Twenty minutes later I had a second page, so I made &lt;code&gt;templates.prismicaudit.com&lt;/code&gt; and moved it there. Two hostnames, maybe forty minutes of total existence.&lt;/p&gt;

&lt;p&gt;My client's one-line reply: &lt;em&gt;"Doesn't piling subdomains on prismicaudit look bad? And every subdomain should need my approval."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;He was right, and not for the reason I first assumed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a subdomain actually claims
&lt;/h2&gt;

&lt;p&gt;A subdomain is not a folder. It is a claim that this thing is a separate property:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It splits link equity.&lt;/strong&gt; Every inbound link to &lt;code&gt;t18.prismicaudit.com&lt;/code&gt; credits that hostname. Nothing flows back to the apex.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It splits the brand.&lt;/strong&gt; A visitor who lands on the subdomain sees a different name in the URL bar. If it's a sales page, they now have to trust two names instead of one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It splits your search console.&lt;/strong&gt; Another property to verify, another sitemap, another set of zero-data reports.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It never gets cleaned up.&lt;/strong&gt; The cost is paid later, by whoever audits the zone in eighteen months and finds five hosts, three of which 404.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The hosting reason was real — separate ports, separate services, one CNAME each. But "it's easy to route" is not the same as "it should exist." I had been treating DNS as a deployment detail when it's closer to a sitemap.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule I landed on
&lt;/h2&gt;

&lt;p&gt;Two shapes, and nothing in between:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Same product, path.&lt;/strong&gt; Product pages live at &lt;code&gt;example.com/t18/&lt;/code&gt;. One hostname, one property, one sitemap. The routing is slightly more work — a catch-all static server, or a rewrite — and that's the tax you pay for keeping the brand in one piece.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Different product, own domain.&lt;/strong&gt; If it deserves a subdomain, it probably deserves a domain. A subdomain is the worst of both: separate identity, shared reputation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Anything else — a preview environment, an internal tool, a one-off landing page — belongs behind auth or on a throwaway host (&lt;code&gt;*.vercel.app&lt;/code&gt;), not on the domain you're trying to build.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part I got wrong twice
&lt;/h2&gt;

&lt;p&gt;The first mistake was creating the subdomain. The second was &lt;em&gt;moving&lt;/em&gt; the page to a second subdomain to fix the first one. Both times the reasoning was identical: the page already worked, so the only question left was where to point DNS. That framing hides the actual question — &lt;em&gt;should this be a separate property at all?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The test I use now, before adding a hostname:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Will this page ever be linked to from outside? (If yes, path.)&lt;/li&gt;
&lt;li&gt;Does it need its own brand or its own audience? (If yes, domain.)&lt;/li&gt;
&lt;li&gt;Is it temporary, internal, or a preview? (If yes, not on this domain.)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the answer is "I don't know yet," the default is a path. Paths are reversible for free. Subdomains cost you a redirect forever, and a small amount of credibility every time someone notices.&lt;/p&gt;

&lt;p&gt;Both hostnames are gone now. The page lives on a Vercel project, and when it earns a permanent home it gets a path or its own domain — decided on purpose, not because the CNAME was easy to type.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I build these homepage templates and the audits that keep them fast: &lt;a href="https://slicelab.prismicaudit.com/" rel="noopener noreferrer"&gt;SliceLab&lt;/a&gt; · &lt;a href="https://prismicaudit.com/" rel="noopener noreferrer"&gt;PrismicAudit&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>design</category>
      <category>seo</category>
      <category>discuss</category>
    </item>
    <item>
      <title>The 3,400px ceiling made me cut my favourite section</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Sun, 08 Nov 2026 01:37:03 +0000</pubDate>
      <link>https://dev.to/amazong110/the-3400px-ceiling-made-me-cut-my-favourite-section-2ld8</link>
      <guid>https://dev.to/amazong110/the-3400px-ceiling-made-me-cut-my-favourite-section-2ld8</guid>
      <description>&lt;p&gt;Every page in the 18 Next.js homepage templates I've been shipping has a hard budget: &lt;strong&gt;3,400px of document height&lt;/strong&gt;. Not a guideline, not a lint warning — a number I check before a template counts as done.&lt;/p&gt;

&lt;p&gt;Last week that number made me delete the section I liked most.&lt;/p&gt;

&lt;h2&gt;
  
  
  The template
&lt;/h2&gt;

&lt;p&gt;t18 is Stonebridge Build, a residential builder/remodeler. The page had five sections:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;a before/after drag hero on the same elevation (frame → finished room)&lt;/li&gt;
&lt;li&gt;a live site log — active jobs with phase badges and what was signed off&lt;/li&gt;
&lt;li&gt;a scope board — new build / whole-home remodel / add-on, with photos&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;a four-step "how the quote works" strip&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;a trust + estimate section: licence badges, warranty, and the form&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Section 4 is the one I fought for. Four numbered steps — site visit, fixed quote, consent, build — each with one line of copy. It answered the question every homeowner actually has after filling in a form: &lt;em&gt;what happens next, and when will someone ask me for money.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it lost
&lt;/h2&gt;

&lt;p&gt;After the hero and its lead, the site log and the scope board, there was no room left for both a process strip and a form section. One section had to die, and the honest ranking looked like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;hero&lt;/strong&gt; — proves the transformation. Cannot be cut; it's the whole pitch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;site log&lt;/strong&gt; — proves the work is happening &lt;em&gt;now&lt;/em&gt;, on real houses. Cannot be cut; it's the difference between a builder and a brochure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;scope board&lt;/strong&gt; — says what's in and out. Cannot be cut; it's where "we do everything" stops being true and starts being useful.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;trust + estimate&lt;/strong&gt; — badges, warranty, and the form. Cannot be cut; it's the only place a visitor can act.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;quote steps&lt;/strong&gt; — reassures.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reassurance loses to proof. That's the whole decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  What replaced it
&lt;/h2&gt;

&lt;p&gt;Not nothing — a compression. The step sequence moved into the form panel as a single line under the submit button ("Site visit within 5 working days · fixed quote before any work starts"), and the four licence badges stayed as a compact row. Roughly 120px instead of 640px, and the same promise, in the place where the visitor is actually hesitating.&lt;/p&gt;

&lt;p&gt;Everything else stayed deleted. I kept the component and the copy in git; the template simply doesn't mount it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the cap actually is
&lt;/h2&gt;

&lt;p&gt;A height budget is a priority list wearing a number. When you can't add a section, you're forced to answer a question that a 12-section homepage lets you dodge forever: &lt;em&gt;which of these is doing work, and which is just making me feel thorough?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I'd been treating "process transparency" as proof. It isn't. Proof is a photograph of this week's framing, a phase label, a licence number. Process is comfort — real, worth having, but compressible into a sentence at the point of decision.&lt;/p&gt;

&lt;p&gt;The tradeoff is genuine: for a very high-ticket service, the process &lt;em&gt;is&lt;/em&gt; the product, and someone choosing between two builders may care more about "who signs off" than about a pretty before/after. If that's your case, fold the steps into the estimate section and keep the sequence — just don't give it its own 600px slot out of politeness.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule I'd give anyone building a page
&lt;/h2&gt;

&lt;p&gt;Write down the height. Then, for each section, write the one job it does in a single sentence. If a section's sentence is "it reassures people", it can live inside the section that asks for the sale.&lt;/p&gt;

&lt;p&gt;The 3,400px cap didn't make t18 smaller. It made it decide what it was for. Pages that never decide stay long, and long pages don't read as thorough — they read as unsure.&lt;/p&gt;

&lt;p&gt;The other 17 templates got the same treatment; the ones that survived the cut are the ones I'd actually put in front of a client.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>design</category>
      <category>nextjs</category>
      <category>ux</category>
    </item>
    <item>
      <title>Why every platform's pages score badly on PageSpeed — and why "score" is the wrong thing to look at</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Tue, 20 Oct 2026 10:11:50 +0000</pubDate>
      <link>https://dev.to/amazong110/why-every-platforms-pages-score-badly-on-pagespeed-and-why-score-is-the-wrong-thing-to-look-at-b9e</link>
      <guid>https://dev.to/amazong110/why-every-platforms-pages-score-badly-on-pagespeed-and-why-score-is-the-wrong-thing-to-look-at-b9e</guid>
      <description>&lt;p&gt;I've spent the last few years doing performance work on Next.js, Prismic, Shopify and WordPress builds. This is what I've learned about why the numbers refuse to agree — and which ones I actually report.&lt;/p&gt;




&lt;h2&gt;
  
  
  The question I get on almost every project
&lt;/h2&gt;

&lt;p&gt;A client once asked me: &lt;strong&gt;"why are our scores so low?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The site felt fast. It looked fast. My own Lighthouse run on my laptop said &lt;strong&gt;98&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;PageSpeed Insights said &lt;strong&gt;71&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Neither number is wrong. But two things nobody had told them:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Those two tools do not measure the same thing.&lt;/li&gt;
&lt;li&gt;The score is not a property of their site. It's a &lt;strong&gt;reading&lt;/strong&gt; — taken on one machine, on one network, at one moment.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That second point is the one I now lead with.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. What you are actually measuring
&lt;/h2&gt;

&lt;p&gt;Local Chrome Lighthouse and PageSpeed Insights differ in four ways at once:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Network.&lt;/strong&gt; Local: your broadband, often partly cached. PageSpeed: fixed &lt;strong&gt;Slow 4G&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CPU.&lt;/strong&gt; Local: your own machine. PageSpeed: &lt;strong&gt;4× CPU throttling&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache.&lt;/strong&gt; Local: easy to keep warm. PageSpeed: &lt;strong&gt;cold start&lt;/strong&gt;, every run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Geography.&lt;/strong&gt; Local: usually close to the CDN. PageSpeed: Google's lab → your host, so worse &lt;strong&gt;TTFB&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Same page, 98 and 71. The gap isn't a bug in either tool — it's four variables changing together, and only one of them is your code.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What I do:&lt;/strong&gt; when I report a number, I say which tool and which profile produced it. A number without that context isn't information.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  2. Three ways I've watched people measure it wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Testing the dev server.&lt;/strong&gt; &lt;code&gt;npm run dev&lt;/code&gt; is uncompressed and running a hot-reload loop. I have seen a mobile score around &lt;strong&gt;52&lt;/strong&gt; on a page that sits in the 80s in production. That's not a baseline, it's noise.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Testing in a browser you've already visited.&lt;/strong&gt; Your cache is absorbing costs your visitors will pay. Incognito, cache disabled — or don't trust the result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Testing a deployment that's already been replaced.&lt;/strong&gt; You fixed the code, but the URL you tested is the previous build. This happens constantly with preview deploys.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What I do:&lt;/strong&gt; before I touch anything, I write down the tool, the profile, the URL and the build. Half of all "performance regressions" I've been asked to fix turned out to be one of these three.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  3. Why every platform fails
&lt;/h2&gt;

&lt;p&gt;I work across four stacks, and they break in different ways. But they share one root cause:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Each of these platforms lets code you did not write run on your critical path.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Shopify — third parties dominate the score.&lt;/strong&gt; On a Shopify store the theme is rarely the problem. Booking apps, review widgets, chat, heatmaps, pixels — they inject at runtime and they own the main thread.&lt;/p&gt;

&lt;p&gt;Here is the clearest example I have. A booking app pulled jQuery from a Google CDN. On a weak connection that request was slow or failed outright, and the button sat on "Loading…" forever. The fix wasn't in the app. It was in the theme:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;self-host jQuery in the theme and load it early on product templates&lt;/li&gt;
&lt;li&gt;preconnect to the app's CDN&lt;/li&gt;
&lt;li&gt;disable the sticky add-to-cart that was covering the modal on mobile&lt;/li&gt;
&lt;li&gt;fix the modal's z-index and mobile scroll lock&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the reproduction mattered more than the fix: that missing button only appeared when you navigated from a collection page into a product page on a weak network. Testing the collection page alone proves nothing.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What I do:&lt;/strong&gt; on Shopify I test the page where the script actually injects — not the page that's convenient.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;WordPress — plugin sprawl.&lt;/strong&gt; Email, gift cards, forms, payments: each brings its own front-end JavaScript and CSS, and the stack adds up faster than anyone expects. Caching is a trap too — logged-in, cart and checkout pages usually bypass it, so I measure both states and say which one I'm reporting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next.js and content sites — three repeat offenders.&lt;/strong&gt; The same asset downloaded twice (a mobile-only and a desktop-only &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; of the same file); a CSS &lt;code&gt;background-image&lt;/code&gt; that only becomes discoverable after the stylesheet parses; too much JavaScript in the first-load packet.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What I do:&lt;/strong&gt; on content sites I ask one question first — &lt;strong&gt;is the LCP element discoverable in the initial HTML?&lt;/strong&gt; In most of my slowest cases, it wasn't.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  4. Where the points actually are
&lt;/h2&gt;

&lt;p&gt;Approximate Lighthouse 10 performance weights:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;TBT — about 30%.&lt;/strong&gt; The main thread is blocked by long tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LCP — about 25%.&lt;/strong&gt; The largest element paints late.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CLS — about 25%.&lt;/strong&gt; The layout jumps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FCP — about 10%.&lt;/strong&gt; First contentful paint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SI — about 10%.&lt;/strong&gt; Visual completeness.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;TBT plus LCP is more than half the score.&lt;/strong&gt; When I'm asked to "fix performance", I work on those two and I say so out loud. Spending a week on FCP and Speed Index is working on 20% of the problem.&lt;/p&gt;

&lt;p&gt;And I do it on mobile. Desktop scores look fine and hide all of it.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Two things that still surprise people
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A solid background colour is not FCP.&lt;/strong&gt; First Contentful Paint needs actual content — text, an image, a gradient, an SVG. Paint a page with one background colour and it has no first contentful paint at all, however good it looks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;font-display: optional&lt;/code&gt; can win you CLS and LCP&lt;/strong&gt; — on a fast connection. On a slow one, the &lt;strong&gt;entire visit&lt;/strong&gt; stays in the fallback font. To the client that isn't a trade-off I chose; it looks like a bug.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. The uncomfortable part I now say early
&lt;/h2&gt;

&lt;p&gt;Here is a real chain from one project, in order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Local broadband Lighthouse: up to &lt;strong&gt;98&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;PageSpeed Insights, mobile: &lt;strong&gt;71–75&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Temporary image downsizing: &lt;strong&gt;~91&lt;/strong&gt; — rejected by the client as blurry&lt;/li&gt;
&lt;li&gt;High-quality imagery restored: settled at &lt;strong&gt;82–85&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I say this at the start of the project now:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;With "no quality loss, no structural change" as a hard requirement, a mobile score rarely locks at 90.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Something has to give: bytes, motion, or images. My job is to tell you which one I'd give up and what it costs. &lt;strong&gt;If nobody agrees on that, we will argue about the score forever — and the score is the one number that depends on the machine it was measured on.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  7. What I report instead
&lt;/h2&gt;

&lt;p&gt;I stopped treating the score as the goal. It's an environment-dependent reading.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Page weight and LCP are properties of the page itself.&lt;/strong&gt; They travel. They are the same whether Google or I run the test. So those are what I measure, and I show before and after, taken back to back on the same machine.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A score tells you how one machine on one network felt about your page.&lt;br&gt;
Page weight and LCP tell you what your page actually is.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  8. Three checks you can run yourself
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;DevTools → Network → Img, then reload.&lt;/strong&gt; Find the largest image. Compare the file's real width with the size it's displayed at. If the file is 2–3× bigger than the slot, that's your first win — and it's usually the cheapest one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run Lighthouse mobile three times and report the median.&lt;/strong&gt; Never a single run. A single run is a coin flip.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search your HTML for two &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tags pointing at the same file.&lt;/strong&gt; That's a duplicate download, and it costs nothing to fix.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  The one-line version
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Measure production, not your dev server. Make the LCP element discoverable and single-request. Keep first-load JavaScript and fonts off the critical path. Remember a solid colour isn't FCP. Test Shopify apps on the page they actually load on. And agree the quality trade-off before you promise anyone a number.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;I build and fix content-driven front-ends — Next.js, Prismic, Shopify and WordPress — and I measure the result instead of asserting it. If you want to know whether your site is actually slow, or just being measured badly, run it through &lt;a href="https://prismicaudit.com" rel="noopener noreferrer"&gt;prismicaudit.com&lt;/a&gt; and send me what it finds.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>performance</category>
      <category>seo</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>An AI cleanup deleted 8 lines of CSS. The build passed. The signboard vanished.</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Tue, 20 Oct 2026 09:20:39 +0000</pubDate>
      <link>https://dev.to/amazong110/an-ai-cleanup-deleted-8-lines-of-css-the-build-passed-the-signboard-vanished-19ii</link>
      <guid>https://dev.to/amazong110/an-ai-cleanup-deleted-8-lines-of-css-the-build-passed-the-signboard-vanished-19ii</guid>
      <description>&lt;p&gt;A few weeks ago I asked an agent to tidy the token layer of a restaurant template. It did exactly what I asked. One theme block had eight custom properties that looked unused: three wood tones, one border shade, one inset shade, and three paper tones for a signboard face. Nothing in the React code referenced them by name. The agent deleted all eight and reported "removed unused variables."&lt;/p&gt;

&lt;p&gt;The build passed. Typecheck passed. No console error. The page still rendered.&lt;/p&gt;

&lt;p&gt;The hand-painted A-frame sign at the top of the page — the one element a customer would actually photograph — was now a blank, transparent rectangle. Every gradient on it resolved to nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why nothing caught it&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CSS custom properties are strings. &lt;code&gt;var(--wood-2)&lt;/code&gt; with no definition is not a syntax error; it's invalid at computed-value time, so the property falls back to unset — usually transparent.&lt;/li&gt;
&lt;li&gt;TypeScript doesn't read CSS. ESLint doesn't know your design tokens. Neither does the bundler.&lt;/li&gt;
&lt;li&gt;Lighthouse is happy. Zero errors, zero warnings. The page is still "accessible" and still "fast."&lt;/li&gt;
&lt;li&gt;"Unused" had been judged by grepping the TSX. The tokens were consumed in a different language — inside &lt;code&gt;linear-gradient()&lt;/code&gt; and layered &lt;code&gt;box-shadow&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's the shape of what disappeared, from the theme block:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nt"&gt;data-theme&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;"estuario"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;--wood-1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#8b5a2b&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="py"&gt;--wood-2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#6e4320&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="py"&gt;--wood-3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#a67c52&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;--wood-border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#5c3a1e&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="py"&gt;--wood-inset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#3d2412&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;--board-face-a&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#f3ebe0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="py"&gt;--board-face-b&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#e8dcc8&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="py"&gt;--board-face-c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#d9c9b0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Eight lines. The sign was built from all eight.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I changed in my process&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The token layer is additive-only. Deleting from it requires a human diff review, even at eight lines.&lt;/li&gt;
&lt;li&gt;Every change ships with before/after screenshots of the section it touched, at 390px and 1440px — not a screenshot of the homepage.&lt;/li&gt;
&lt;li&gt;I review by blast radius, not diff size. Those eight deleted lines touched every surface on that page. A 300-line new component touches one section.&lt;/li&gt;
&lt;li&gt;Before any deletion, the agent has to say what consumes it, with a grep across CSS, TSX, and JSON. If it can't produce that, it doesn't delete.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The part that generalizes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Agents are strong at additive work and unreliable at cleanup, because cleanup requires knowing the blast radius — and the blast radius is precisely what isn't in the file being edited. A deletion is a claim about the whole repo. Most of the time nobody checks that claim.&lt;/p&gt;

&lt;p&gt;So my rule is boring: additions get reviewed by tests, deletions get reviewed by eyes. Build passing means nothing here — it passed the whole time the sign was gone.&lt;/p&gt;

&lt;p&gt;If you're shipping sites with agents, the review is the product. The 17 templates I've shipped all clear the same gates — zero console errors, no horizontal overflow at 390px, 7:1 contrast, no external image domains — and not one of those gates would have caught this. Only the screenshot did.&lt;/p&gt;

&lt;p&gt;Live pages: &lt;a href="https://slice-templates-pool.vercel.app/" rel="noopener noreferrer"&gt;https://slice-templates-pool.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The broader build, and why the constraint is verification rather than generation speed: &lt;a href="https://dev.to/amazong110/i-built-17-nextjs-homepage-templates-heres-the-part-ai-cant-do-389h"&gt;https://dev.to/amazong110/i-built-17-nextjs-homepage-templates-heres-the-part-ai-cant-do-389h&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>ai</category>
      <category>frontend</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I built 18 Next.js homepage templates. Here's the part AI can't do.</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Tue, 20 Oct 2026 09:02:41 +0000</pubDate>
      <link>https://dev.to/amazong110/i-built-17-nextjs-homepage-templates-heres-the-part-ai-cant-do-389h</link>
      <guid>https://dev.to/amazong110/i-built-17-nextjs-homepage-templates-heres-the-part-ai-cant-do-389h</guid>
      <description>&lt;p&gt;I spent the last few weeks building 18 homepage templates for Next.js. Seventeen industries — law, dental, barbering, architecture, jewellery, veterinary, cafés, boutique stays, pilates studios, residential contractors — not 18 recolors of the same hero.&lt;/p&gt;

&lt;p&gt;I used AI heavily for all of it. Here is what it was genuinely good at, and the three places it kept failing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it's good at:&lt;/strong&gt; scaffolding. Section skeletons, Tailwind classes, responsive breakpoints, alt text, the boring 60%. A layout that used to take an afternoon takes forty minutes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it can't do — one: decide what the page is arguing.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every homepage makes a claim. A law firm's page argues "we are careful." A salon's argues "you will feel good walking out." AI will happily generate a hero for both and make them look identical. I had to write the claim down first, in one sentence, or the output was decoration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two: spacing is a judgment, not a value.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AI produces &lt;code&gt;py-16&lt;/code&gt; everywhere because it's safe. A page where every section has the same rhythm reads as a template — which is exactly what buyers are trying to escape. Half my time went into rhythm: a tight block after a large one, a quiet section before the CTA.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three: it breaks things it wasn't asked to touch.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ask for one section, get eight files changed. In one case a "cleanup" removed a CSS variable and silently killed a decorative element. It built fine. Type-checked fine. I only caught it by screenshotting before and after on a phone.&lt;/p&gt;

&lt;p&gt;So my workflow is boringly manual: read the diff, change one file, screenshot at 390px, repeat. Agents write fast; the review is the work.&lt;/p&gt;

&lt;p&gt;Every template has to clear the same gates before I ship it: zero console errors, no horizontal overflow at 390px, text contrast at least 7:1, no external image domains. Boring checks, and they're the reason the templates are usable rather than just pretty.&lt;/p&gt;

&lt;p&gt;If you're using agents for frontend, the constraint isn't generation speed anymore. It's how fast you can verify.&lt;/p&gt;

&lt;p&gt;I wrote up one specific failure from that build — an agent "cleanup" that deleted eight CSS variables and made a signboard disappear while every check stayed green: &lt;a href="https://dev.to/amazong110/an-ai-cleanup-deleted-8-lines-of-css-the-build-passed-the-signboard-vanished-19ii"&gt;https://dev.to/amazong110/an-ai-cleanup-deleted-8-lines-of-css-the-build-passed-the-signboard-vanished-19ii&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The live pages (and the source) are here: &lt;a href="https://slice-templates-pool.vercel.app/" rel="noopener noreferrer"&gt;https://slice-templates-pool.vercel.app/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>ai</category>
      <category>frontend</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The link buried in your dropdown is costing you twice — once in clicks, once in search</title>
      <dc:creator>Cody Wang</dc:creator>
      <pubDate>Sat, 17 Oct 2026 02:26:21 +0000</pubDate>
      <link>https://dev.to/amazong110/the-link-buried-in-your-dropdown-is-costing-you-twice-once-in-clicks-once-in-search-337e</link>
      <guid>https://dev.to/amazong110/the-link-buried-in-your-dropdown-is-costing-you-twice-once-in-clicks-once-in-search-337e</guid>
      <description>&lt;p&gt;Every navigation bar is an argument about what matters. Most of them are made by accident.&lt;/p&gt;

&lt;p&gt;I worked on a site where one section — a genuinely useful one, with real content behind it — sat two levels down. You had to hover a top-level item, wait for a panel, and find it in a list of eight. Nobody had decided that page didn't matter. It just ended up there, the way things do.&lt;/p&gt;

&lt;p&gt;I moved that one link out of the dropdown and into the top bar. Same label, same page, same design system, same week.&lt;/p&gt;

&lt;p&gt;That single move did two jobs at once. One is the obvious one — people finally see it. The other is quieter and most people never connect it: &lt;strong&gt;it changes what your site tells Google about that page.&lt;/strong&gt; If you only think about the first, you're leaving half the value on the table.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a buried link doesn't get clicked
&lt;/h2&gt;

&lt;p&gt;Three things change when a link leaves a dropdown, and only one of them is about "visibility."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. A dropdown is not scanned, it's avoided.&lt;/strong&gt; People read a horizontal nav in a single sweep, left to right, in well under a second. A dropdown demands a deliberate action — hover or tap, wait, then read a new list — before the user knows whether the payoff exists. That's a cost paid on speculation. Most people decline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. A list of eight flattens everything inside it.&lt;/strong&gt; In a dropdown, your item is one of eight peers. No hierarchy, no emphasis, no visual weight — a line of text among lines of text. On the top level, it inherits the bar's salience and becomes one of four or five things the site is &lt;strong&gt;about&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Position is a claim about importance.&lt;/strong&gt; Users infer priority from placement, because that's how every interface they've ever used works. Putting something in the top bar tells them it's a main line of the business without a word of copy. That inference does most of the work — which is why the same link in the same font performs completely differently one level up.&lt;/p&gt;

&lt;p&gt;Notice what's missing from that list: the label. If the label had been the problem, moving it would have fixed nothing.&lt;/p&gt;

&lt;p&gt;And on phones it's worse. A hover dropdown becomes a tap, a tap becomes a full-screen accordion, and the user has left the homepage before they've seen your section at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the client actually gets
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The section stops being a secret.&lt;/strong&gt; This is the whole point. A page nobody can find isn't a page — it's a URL. Moving it up is the cheapest way to turn an asset you already paid for into something that earns.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A shorter path, and shorter paths convert.&lt;/strong&gt; The move removes one deliberate decision between a visitor and the thing they came for. Every extra step in a journey is a place where people leave, and a dropdown is the step with the worst attrition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A positioning statement that costs nothing to make.&lt;/strong&gt; Putting something in the top bar tells every visitor, on every page, that this is part of what the business does. That's brand work, and you get it for the price of a menu edit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A mobile experience that isn't broken.&lt;/strong&gt; On small screens a deep item can be three interactions away. Promoting it often fixes mobile discovery without a redesign.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And a decision that forces the question.&lt;/strong&gt; A nav bar is zero-sum — the top level fits four or five items and then it doesn't. So promoting one thing means something else steps down. That's not a downside; it's the useful part. It forces you to answer, out loud, what this business is actually selling. If you can't answer it, the nav was never the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this also helps search — and why almost nobody says so
&lt;/h2&gt;

&lt;p&gt;Here's the part that gets skipped. When you move a link into the sitewide top bar, you're not just changing what humans see. You're changing what your site tells a crawler on every single page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your navigation is your strongest internal anchor text.&lt;/strong&gt; Every page on the site now links to that section with the same words. That repetition is one of the clearest topical signals you can send about what a page is about. If the item lived under a generic label — "More", "Resources", "Solutions" — the anchor text it inherited was generic, and so was the signal. Give it a top-level label that matches what people actually call the thing, and the signal sharpens on every page at once. This is the single most underrated reason to promote a link, and it costs nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Crawl depth is a budget.&lt;/strong&gt; Search engines don't crawl every URL equally often; pages linked from every page of the site get re-crawled more regularly than pages three levels deep. That matters for two practical reasons: new content gets discovered and indexed sooner, and changes you make to an existing page get picked up faster. A buried section can sit with stale titles and old copy in the index for weeks because nothing is prompting a re-crawl.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It makes the hierarchy legible.&lt;/strong&gt; A sitewide link communicates "this is a top-level part of this site." That's a structural statement, and structure is one of the few things about your site you fully control. Pages that are one click from everywhere tend to earn internal recognition — including, sometimes, sitelinks under your main result in search. Google decides those, not you, but it can only choose from what your structure makes obvious.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And there's a trap worth checking this week.&lt;/strong&gt; Plenty of dropdown menus are built so the links only exist after JavaScript runs — the markup is generated on hover. If that's your menu, a crawler that doesn't execute scripts sees nothing at all, and the section is invisible to search even though a human can reach it. The test takes ten seconds: open the page, view the raw HTML source, and search for the link's text. If it isn't there, your navigation is smaller than it looks.&lt;/p&gt;

&lt;p&gt;Two honest caveats. Moving a link up does not, on its own, move rankings — it improves discoverability and strengthens internal signals, and those compound over time. And none of this fixes a page that doesn't deserve the traffic. Promotion buys attention; the page has to be worth it.&lt;/p&gt;

&lt;h2&gt;
  
  
  When not to move it
&lt;/h2&gt;

&lt;p&gt;If the page is thin, if it's a legal page, if it's a campaign that ends next month, or if promoting it means demoting something that actually pays the bills — leave it where it is. A top bar with nine items is worse than a dropdown, because then nothing is important.&lt;/p&gt;

&lt;p&gt;The rule I use: the top bar should contain the things you'd say out loud if someone asked what the business does. Everything else can live one level down and still be found.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two-minute check
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open the page. Is it reachable from the top bar in one action?&lt;/li&gt;
&lt;li&gt;View the raw HTML and search for the link's text. If it's not in the source, crawlers may not see it either.&lt;/li&gt;
&lt;li&gt;Count the items in your top bar. More than five means the argument about what matters has already been lost.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;If you want a second opinion on your navigation, tell me what's in your top bar and what's one level down. I'll tell you which one I'd move, which one I'd cut, and which one is invisible to search without you knowing.&lt;/p&gt;




&lt;p&gt;If you'd rather have someone look at it directly: this is the kind of thing I do for a living — &lt;a href="https://prismicaudit.com/?from=devto" rel="noopener noreferrer"&gt;prismicaudit.com&lt;/a&gt;. Tell me what's in your top bar and what's one level down, and I'll tell you which one I'd move and which one I'd cut.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>ux</category>
      <category>marketing</category>
    </item>
  </channel>
</rss>
