Skip to content

@ogygia/devtools · Dock

Page findings

Every problem the dock's Page tab can name on a page load, grouped by what went wrong, with what triggers it and what to do. All but three of them also come back from @ogygia/testing's page() and the profiler's report of a visit.

On this page

The Page tab turns what the browser measured into findings. Each one has a code, a severity (an error, a warning or a note), a message with the numbers it saw, a fix, and the islands it’s about, which light up when you hover it.

This page lists them all. The code in the first column is the one @ogygia/testing’s page() returns, so you can match or ignore a finding by it in a test. page() returns every finding here except the three marked tab only (island-files-uncached, css-unscoped and css-unmatched), which the tab works out when it opens (#2304). A finding marked dev is raised only on the dev server, and build only in a build. The main findings are checked in ogygia’s CI against a page that plants each problem beside a healthy decoy.

Some of the numbers below come from the dev server, which serves modules one at a time and compiles a page on its first request. A finding caused only by that compile is downgraded to a note that says “reload for a warm reading”.

Hydration

Whether each island woke from the server’s markup. The Hydration tab shows the same thing island by island.

CodeRaised when
hydrate-failedThe island threw while it loaded or mounted. It keeps its server HTML and does nothing. The browser console has the stack.
recoveredSvelte threw away the island’s server HTML and rendered it again (a flash and a double render). The finding says why when it can tell: the markup was rewritten on its way from the server (Svelte’s hidden markers arrived unpaired), a script edited it first, or the component drew a different tree in the browser.
markup-changedThe island rendered different markup in the browser than on the server, so the page changes as it wakes. It shows the first difference, and the component line that reads a browser-only value, when the dev server found one.
markup-encodedThe two markups differ only in how a URL is encoded (a/b against a%2Fb). Nothing changes on screen. Matters only to a test or cache that compares HTML byte for byte.
svelte-hydration-warningdev Svelte warned while hydrating (the server and the browser disagreed, and Svelte kept the server’s value, so the screen doesn’t show it). With the component file and the island, when known.
empty-slotAn awake island shows its children in a slot with nothing in it. An island’s children are the server’s HTML, so children behind a condition that was false on the server can’t appear in the browser. Render them on the server and hide them instead.
restore-lateA web component upgraded before ogygia restored its server-rendered children (a blocking script defined it). Load the component library as a module or with defer.
restore-mismatchA server transform left a web component’s children different from what Svelte rendered, and ogygia couldn’t put them back.

Island wakes

When each island woke, and what it cost the page.

CodeRaised when
early-clickA visitor pressed an island before it was awake, so the first click did nothing. An island with wake: 'interaction' is exempt: its first click wakes it and is replayed.
hydration-shiftThe layout moved within 600 ms after an island hydrated: its size changed as it woke. Render it at its final size on the server. Where the browser reports no layout shifts, the shift is estimated from the island’s box before and after.
long-hydrateThe hydrate step was one task of 50 ms or more, so the page couldn’t respond meanwhile. With a CPU trace, it names the function that took the time.
queuedThe island had its code but waited 150 ms or more for its turn, behind other islands. Islands on the first screen go first; the finding names the ones it waited for.
held-idleThe island had its code but waited for its turn while no other island was hydrating and nothing on the first screen was loading. Nothing on your page explains that wait: it’s ogygia’s scheduler, and the finding asks you to report it.
slow-moduleThe island waited 800 ms or more for its code. Check its imports in the Bytes tab.
eager-offscreenA wake: 'load' or 'idle' island starts below the first screen. wake: 'visible' would load its code later. A warning when its own code is 50 KB or more.
eager-hiddenA load or idle island draws nothing at this screen size (a phone bar on a wide screen) but loads its code anyway. When the page’s CSS shows it only under a media query, the fix names that query to wake it by.
headless-islandA load or idle island renders nothing to see, only hidden markers, and loads 4 KB or more of its own code at page load to run its effects.
late-interactiveA load or idle island on the first screen woke a second or more after the largest paint: the page looked done, but clicking it did nothing.
never-wokeA wake: 'load' island is still asleep three seconds after the load event. Look in the console for a module that never loaded.
island-leftoverAn island left an interval running or a listener attached after it left the page (on an in-app navigation). Each visit adds another. Return a cleanup from the $effect that started it.
fp-unstableAn island’s fingerprint changed since your last load of this page, though the page’s data may not have: a prop is made fresh on every render. The router then patches it on every navigation, and a cache keyed on the HTML misses every time.
dom-largeThe page has 1,500 elements or more. When one island holds a large share of them, it names that island, which pays for every one as it hydrates.

Code and files

What the page downloaded, and how.

CodeRaised when
island-barreldev An island’s code still imports a re-export barrel whole, so every module behind it rides into the island. It names the barrel and how many modules come with it. With barrels() in the app, it also says why that barrel was left as it is, and the fix for that reason.
island-heavy-moduledev One module is 40% or more of an island’s code, and the island is 30 KB or more (dev sizes, unminified). The island’s card lists its heaviest modules too.
dev-two-copiesdev A package loads twice: pre-bundled by Vite and raw from its folder. A module that keeps state then has two copies, and the bug shows only in dev. The fix names the optimizeDeps entry to change.
island-file-gonebuild An island couldn’t load its own content-hashed file, so it loaded the current build’s file instead: the page came from a cache that outlived its build. Keep old _app/immutable/ files as long as your HTML stays cached, or purge the HTML on deploy. See Island files after a deploy.
island-files-uncachedbuild, tab only The host serves the islands’ files or the runtime without a long cache (no-cache, no header, or a max-age under a day). The tab asks the server once per file with a HEAD request, and names the heaviest first. Serve _app/immutable/ with cache-control: public, max-age=31536000, immutable.
files-fetched-againThe browser asked the server again for content-hashed files it already had, either revalidating each (a 304) or downloading it whole on a reload. island-files-uncached reads the header; this one is what the browser did about it.
uncompressedbuild Text files came down without gzip or brotli, 20 KB or more in all (a warning from 100 KB). Turn on compression where the response leaves your server.
preload-unusedA file was fetched by <link rel="preload"> and then downloaded again, because the preload didn’t match the request. A font preload needs crossorigin, a fetch preload needs crossorigin matching the request’s credentials, and a module wants modulepreload.
preload-never-usedA preloaded file was still unused three seconds after load. Its bytes competed with the files the first screen needed.

Holes and streaming

Server islands and streamed pages.

CodeRaised when
hole-slowA hole on the first screen showed its fallback for a second or more, from the first paint to its swap. A hole woken by scrolling is left out. It splits the wait into the time before its request left, the wait for a render slot on the server and the render, and the fix follows the biggest part. See the hole waterfall.
hole-failedA hole never got its answer and its fallback stays: the request was redirected or answered with a whole page (something in front of ogygia.handle() took it), the capability was refused (403), or the request failed every try.
hole-batch-missedThe one request for several holes ended without some of them, so each fetched on its own afterwards. When something in front of ogygia.handle() refused it (401, 403, 404, 405, a redirect), let POST through to the islands endpoint.
html-held-openThe page painted early, but its HTML kept coming for 250 ms or more, and the islands woke only after it ended, because islands wake once the whole document is in. When a load’s streamed promise held it, it names the page.data key that settled last. Await it in the load, or move the part that needs it into a server island.

Vitals

A vital that isn’t good gets a finding that explains it. When the tab can’t split it, the finding is the bare value, with the code vital-ttfb, vital-fcp, vital-lcp, vital-cls or vital-inp.

CodeRaised when
slow-ttfbThe first byte took over 800 ms. It lists the steps that took time: redirects, a service worker starting, the DNS lookup, connecting (and TLS), and the request until the server answered. With a Server-Timing header, it quotes what the server says. When the server’s wait is the cost, it adds what the Profiler tab’s last run of this page found, or says to run one. On the dev server, most of a first load’s wait is the page compiling.
first-byte-hiddenThe browser gave no timing for the request: it does that for a cross-origin-isolated page. The first byte is missing, not zero. Read it in Chromium, or from the profiler.
slow-fcpThe first paint took over 1.8 s. It splits it into the wait for the first byte, the HTML’s download, the files that blocked the paint (the slowest named) and the rest before the paint.
render-blockingFiles blocked the first paint for 200 ms or more after the HTML arrived. A warning from 600 ms. When inlining small stylesheets would help, the fix gives the inlineStyleThreshold to set in svelte.config.js. When the first paint is over 1.8 s, this moves into slow-fcp instead.
font-invisibleText stayed invisible until its web font arrived (font-display: block or auto), or held the first paint. Use font-display: swap or optional, and preload the file.
slow-lcpThe largest paint took over 2.5 s. It names the element and its island, and splits the time into the first byte, the delay before the browser began fetching its file, the download and the delay before it painted.
lcp-lazyThe largest paint is an image with loading="lazy", so the browser fetched it late. An <Img> from @ogygia/image with priority fixes both this and its priority.
lcp-repaintThe largest paint is inside an island that changed its markup as it woke, so the biggest thing on screen repaints.
shift-causeCLS is over 0.1. It finds the worst burst of shifts (scored the way CLS scores them), what moved, and what happened right before: a hole’s answer swapped in, an image arrived with no size, a web font swapped in, or an island hydrated.
img-unsizedAn image has no size the browser knows before it arrives (no width and height, no aspect-ratio), so what’s below it moves. A warning when the page did move.
slow-interactionINP is over 200 ms. It names the interaction and its island, and splits its time into the wait before the handlers, the handlers and the paint, naming what held each. With the CPU sampler, it names the function, and quotes a line only when a source map gave one.
long-tasks150 ms or more of long tasks ran outside any island’s hydration: page scripts held the main thread. It names the script and line from the CPU trace, or the script from long-animation-frame records. Where the browser reports no long tasks, it uses frames drawn more than 50 ms late.
forced-layoutCode read a size or position (offsetWidth, getBoundingClientRect()) after changing the page, 30 ms or more in all, so the browser laid the page out again each time. Read first, then write.
scroll-jankFrames took 100 ms or more (or 200 ms in all) while the page scrolled. It names the script that held them.
scroll-blockingA wheel or touch listener isn’t passive, so the browser runs it before every scroll step. Add { passive: true }, or use overscroll-behavior and touch-action.
image-oversizedImages are sent far bigger than they show, 50 KB or more of pixels nobody sees. Serve a srcset with sizes.
images-eager-belowImages of 20 KB or more, 1.5 screens or more down, loaded at the start, 100 KB or more in all, competing with the first screen’s files. Give them loading="lazy" and their size.
CodeRaised when
slow-navigationAn in-app navigation took 400 ms or more before the new page showed (a warning past a second). It splits it into fetching the page (the server’s first byte, then the download and its size), loading its stylesheets, and swapping it in. A link prefetched on hover says how much earlier its request began. It counts the islands the new page woke and names the heaviest.
bfcache-blockedBack and Forward load the page from the server again instead of restoring it: a script adds an unload listener, the page is served no-store, or the browser gave other reasons. Listen to pagehide instead of unload.

Other origins

Scripts and styles from other origins. A well-known service gets its kind (tag manager, analytics, ads, session replay, chat, A/B testing, consent, fonts, library CDN) and advice for that kind.

CodeRaised when
third-partyOther origins served 30 KB or more of scripts, ran 50 ms or more on the main thread, or blocked the paint. It gives their size, their main-thread time, and the scripts they loaded that the page never names (how a tag manager adds code). Some browsers hide another origin’s file sizes; the finding says when.
third-party-blockingA script or style from another origin held the first paint. Load it async or defer, self-host it, or preconnect.
third-party-editsAn island didn’t wake from the server’s markup (it changed, was healed, recovered or failed), and scripts from another origin ran before it woke.

Styles

CodeRaised when
css-unscopedtab only ogygia builds the CSS for lakes, holes and router pages itself. When it can’t compile a component’s scoped styles, it ships the raw style body, and its rules then apply to the whole page: a .row in it restyles every .row. The build marks such CSS, and the finding names the component and the reason. The build log has the full message.
css-unmatchedtab only Half or more of the page’s CSS rules, and 20 KB or more of rule text, match nothing on the page right now. It names the sheets that hold them. Open menus and dialogs, then press check again.

Measurement

CodeRaised when
dock-in-paintThe dock was open as the page loaded, and the first paint came just after it showed, so the browser may have counted the dock’s own text as the page’s first paint. Close the dock, reload, then open it again.