Svelte website review, the SvelteKit settings that decide what visitors and Google get

SvelteKit gets more right by default than most frameworks, so a Svelte website review is mostly a hunt for the settings someone changed. Server rendering is on unless it is switched off. Trailing slashes are normalised. The Svelte compiler keeps the JavaScript lean. The problems I find on Svelte sites come from a line added to make one library work, a page nobody linked to, or a title that was never written.
The Svelte team recommends SvelteKit, its official application framework, for new projects. A Svelte app built with Vite alone, without SvelteKit, is a single page app, and its public pages behave like any other app rendered in the browser. Ask whoever built yours which it is. If there is a src/routes folder full of +page.svelte files, it is SvelteKit, and everything below applies.
Has server rendering been switched off in your SvelteKit app?
A single line, export const ssr = false, makes SvelteKit send an empty shell page instead of finished HTML. The page options docs say it is useful when a page uses browser only code such as document, and that in most situations it is not recommended. Put in the root +layout.js, it turns the whole site into a single page app.
SvelteKit’s SEO page explains why that matters. It says server rendered content is indexed more frequently and reliably than content drawn by JavaScript in the browser, and that you should leave server rendering on unless you have a good reason. A chart library or a map that needs window is a reason to change one component, not every page.
Check by searching the project for ssr = false, then viewing your live page source. If the headline is missing from the source of a public page, that line is the first suspect.
Does every SvelteKit page have a unique title and description?
SvelteKit leaves titles to you, and its SEO docs say every page should have a well written, unique <title> and <meta name="description"> inside a <svelte:head> block. Nothing fills them in automatically. A page without one inherits whatever the layout sets, or nothing.
The docs suggest a tidy pattern for this. Each page’s load function returns its SEO data, and the root layout reads it from page.data inside one <svelte:head>. That keeps titles, descriptions and share tags in one place, and a missing value is easy to spot in code review.
Read the browser tab on your homepage, your offer page and one product or post. Then paste the same three links into a private chat with yourself. A tab that says the same thing everywhere, or a share card with no image, is a page that loses clicks before anyone arrives.
Which SvelteKit pages should be prerendered?
Pages that look the same for every visitor, such as the homepage, pricing and About, can be built to HTML once with export const prerender = true. The page options docs suggest exactly this mix, prerendering marketing pages for speed and server rendering dynamic pages, and the result is fast, cheap to host and complete in the page source.
The prerenderer finds pages by following links. It starts at your routes and scans each page for <a> elements that point to other pages. A page reached only from an email, an ad or a form redirect may never be found. The docs give two ways in, the config.prerender.entries setting or an entries function exported from a dynamic route.
A build error is often the first sign. The docs describe a message saying routes “were marked as prerenderable, but were not prerendered”, and give the fixes, which include adding links to the route or changing the page to prerender = 'auto'. If your developer silenced that error to ship, ask which pages it named.
Fully static sites use adapter-static, and it checks your work. By default it fails the build unless every page was prerendered or a single page app shell has been configured. Its docs also warn that ssr must not be false, or prerendering saves the empty shell instead of your content.
What does your SvelteKit error page tell visitors?
Calling error(404, 'Not found') from @sveltejs/kit sets a real 404 status and renders the nearest +error.svelte component. Use it in a load function when a product or post does not exist, so a dead slug returns a proper not found page instead of an empty template with a 200 status.
The root src/routes/+error.svelte is the page most visitors will meet. Give it your header, a plain sentence and a link to your best page. Then visit an address that cannot exist, such as your domain plus /zzz, and see what greets the visitor.
Errors in the root layout skip it. The docs say that when the root +layout.js or +layout.server.js fails, SvelteKit shows its plain error page instead, which you can style with a src/error.html file using %sveltekit.status% and %sveltekit.error.message%. Without that file, a failure in the layout shows visitors an unbranded message.
Does a Svelte website review find a sitemap and light images?
SvelteKit has no sitemap file of its own, and its SEO docs show how to make one with an endpoint at src/routes/sitemap.xml/+server.js. The endpoint returns XML with a Content-Type of application/xml. Open /sitemap.xml on your live domain. A 404 there means search engines are finding your pages the slow way.
SvelteKit already deals with one duplicate address problem. By default it redirects /about/ to /about, and the docs warn that ignoring trailing slashes is harmful to SEO because the two count as separate URLs. If someone set trailingSlash to 'ignore', ask why.
For images, the @sveltejs/enhanced-img plugin serves smaller formats such as AVIF and WebP and sets the width and height for you. You add it to vite.config.js and write <enhanced:img> in place of <img>. The docs ask for images at twice their display size and a sizes value on large hero images, so phones get a smaller file. They also say it only works on images in your project at build time, so photos from a CMS need an image service instead.
Do your SvelteKit forms reach you when something goes wrong?
SvelteKit form actions let a plain <form> post to a +page.server.js file, and the docs say client side JavaScript is optional. That means a contact or booking form can work on a slow phone before the scripts have loaded. Adding use:enhance then makes it smoother where JavaScript runs.
A form action needs a server, so it cannot live on a prerendered page. The page options docs say pages with actions cannot be prerendered, because a server must handle the POST request. A site moved to adapter-static for cheaper hosting loses its form actions along the way, so check the contact form first after any such move.
Mistakes should send people somewhere useful. The fail helper can return the error with the values the visitor already typed, so they can correct one field instead of starting again. Test it by leaving the email blank and submitting. If the form clears itself or shows nothing, people give up there.
What does a Svelte website review from Roast check?
Roast checks public pages in a browser on desktop, tablet and phone, scores them out of 100 and ranks the findings. It sees what a stranger gets, from the first screen and the copy to the titles, the share card, the error page and how long the phone takes to show something useful. Every fix comes with a prompt you can paste into an AI tool, in the style of the roast prompt library.
A public scan cannot see your code, your server, your database, your emails or your payments. It will not find the ssr = false line, only the empty page it produces, and it cannot tell you whether a form action reaches your inbox. Send yourself one enquiry after every deploy. What a roast checks sets out the full list.
Fast pages still lose people when the offer is unclear. If the site loads well and nobody buys, read why a website gets visitors but no sales.
My pick is to search the project for ssr = false today. Then run a free roast of your Svelte site for your score and top three problems, with no sign up. The $5 full roast has every fix and prompt.
Find out what is putting your customers off.
Sources
SvelteKit documentation
- SEO
- Page options, prerender, ssr and trailingSlash
- Static site generation with adapter-static
- Errors
- Images and @sveltejs/enhanced-img
Svelte documentation