Core Web Vitals when half your site is WebGL
· 4-minute read · Measurement and growth · by Direct Softworks
A studio site is a portfolio piece and a sales tool at once. Those pull in opposite directions, and the resolution is not a compromise on either.

If you sell software, your own site is an argument. A studio site that is visually flat is making a claim about the studio whether or not anybody says so.
So there are shaders on ours. An aurora behind the hero, a physics badge, animated fields. And every one of those is a cost paid by the visitor, some of whom are on a mid-range phone on mobile data in a town with two bars of signal.
The way this is usually resolved is a compromise: fewer effects, lower quality, something nobody is happy with. There is a better answer, and it comes from noticing that the metrics measure something more specific than "is the page heavy".
What the metrics actually penalise
Largest Contentful Paint measures when the biggest element in the viewport finishes rendering. A WebGL canvas that fades in behind text does not have to be that element. If your headline is server-rendered text in a self-hosted font, LCP is the headline, and it can be fast regardless of what is happening behind it.
Cumulative Layout Shift measures unexpected movement. A canvas that is absolutely positioned in a container with fixed dimensions shifts nothing when it initialises. A canvas that appears in flow and pushes the content down is a disaster, and it is the same shader either way. This is entirely a CSS decision.
Interaction to Next Paint measures responsiveness. This is the one WebGL genuinely threatens, because a shader running in a requestAnimationFrame loop competes with the main thread for every interaction.
So two of the three are architectural rather than aesthetic. You can keep the effect and pass them, by deciding where it sits and what it is layered behind.
The rules we ended up with
Never let the decoration be the LCP element. Text first, in the HTML, in a self-hosted font with display: swap. The shader is a background.
Reserve the space. Fixed height, absolute positioning, pointer-events: none. The layout is identical before and after the canvas exists.
Never ship the shader library until it is going to run. Dynamic import with SSR disabled, so the WebGL code is not in the initial bundle at all. A visitor who never sees it never downloads it.
Gate on capability, and check it before deciding. Reduced motion preference, data saver, device memory, hardware concurrency. If any of those say no, render the calm dark version and download nothing.
That last point is the one that resolves the whole tension. It is not a compromise between beautiful and fast, it is a branch. Capable device on a good connection gets the full thing. Everything else gets a page that is faster than the compromise version would have been.
The measurement problem underneath
Two things worth knowing before you spend a week on this.
Lab and field are different. Lighthouse gives a synthetic score on a simulated device. Core Web Vitals in Search Console are field data from real Chrome users, and they are what counts for search. For a low-traffic site there is no field data at all: ours reports "not enough usage data" on both mobile and desktop, which means the assessment is neither passing nor failing, it is absent.
That is worth internalising if you are a small site optimising against a Lighthouse number. You are tuning a proxy, and the real measurement will not exist until you have traffic, at which point it may say something different.
Page weight and crawl budget are related. Googlebot's crawl-stats report broke our requests down as 72% page resources and 6% HTML. Every heavy page is spending a budget that is already too small to index the site. That is a much more concrete reason to be lean than a score out of a hundred.
Where we drew the line
Marketing pages carry the effects, gated. The Romanian pages, written specifically to be crawled and to rank, carry almost no client JavaScript at all: server-rendered, native <details> for the FAQ instead of a JS accordion, one decorative component. That was a deliberate asymmetry, not an oversight.
The management panel has none of it, because nobody wants a shader behind an invoice.
The honest summary
If your site is a sales tool for design and engineering work, stripping the craft out to chase a score is optimising the wrong variable. A fast page that fails to make the argument has not won anything.
The move is to make the argument in the parts that are free, which is nearly all of them, and put the expensive parts behind a check for whether this particular visitor can afford them.