Skip to content

Commit 92a936c

Browse files
committed
Add missing hyphen in "server-side rendering"
1 parent c40c49e commit 92a936c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

apps/svelte.dev/content/docs/kit/20-core-concepts/20-load.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Conceptually, they're the same thing, but there are some important differences t
189189

190190
Server `load` functions _always_ run on the server.
191191

192-
By default, universal `load` functions run on the server during SSR when the user first visits your page. They will then run again during hydration, reusing any responses from [fetch requests](#Making-fetch-requests). All subsequent invocations of universal `load` functions happen in the browser. You can customize the behavior through [page options](page-options). If you disable [server side rendering](page-options#ssr), you'll get an SPA and universal `load` functions _always_ run on the client.
192+
By default, universal `load` functions run on the server during SSR when the user first visits your page. They will then run again during hydration, reusing any responses from [fetch requests](#Making-fetch-requests). All subsequent invocations of universal `load` functions happen in the browser. You can customize the behavior through [page options](page-options). If you disable [server-side rendering](page-options#ssr), you'll get an SPA and universal `load` functions _always_ run on the client.
193193

194194
If a route contains both universal and server `load` functions, the server `load` runs first.
195195

apps/svelte.dev/content/docs/svelte/05-special-elements/07-svelte-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `<svelte:options>` element provides a place to specify per-component compile
1313
- `runes={false}` — forces a component into _legacy mode_
1414
- `namespace="..."` — the namespace where this component will be used, can be "html" (the default), "svg" or "mathml"
1515
- `customElement={...}` — the [options](custom-elements#Component-options) to use when compiling this component as a custom element. If a string is passed, it is used as the `tag` option
16-
- `css="injected"` — the component will inject its styles inline: During server side rendering, it's injected as a `<style>` tag in the `head`, during client side rendering, it's loaded via JavaScript
16+
- `css="injected"` — the component will inject its styles inline: During server-side rendering, it's injected as a `<style>` tag in the `head`, during client side rendering, it's loaded via JavaScript
1717

1818
> [!LEGACY] Deprecated options
1919
> Svelte 4 also included the following options. They are deprecated in Svelte 5 and non-functional in runes mode.

apps/svelte.dev/content/docs/svelte/07-misc/07-v5-migration-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ Note that `mount` and `hydrate` are _not_ synchronous, so things like `onMount`
600600

601601
### Server API changes
602602

603-
Similarly, components no longer have a `render` method when compiled for server side rendering. Instead, pass the function to `render` from `svelte/server`:
603+
Similarly, components no longer have a `render` method when compiled for server-side rendering. Instead, pass the function to `render` from `svelte/server`:
604604

605605
```js
606606
+++import { render } from 'svelte/server';+++
@@ -804,7 +804,7 @@ Note that Svelte 5 will also warn if you have a single expression wrapped in quo
804804
805805
### HTML structure is stricter
806806
807-
In Svelte 4, you were allowed to write HTML code that would be repaired by the browser when server side rendering it. For example you could write this...
807+
In Svelte 4, you were allowed to write HTML code that would be repaired by the browser when server-side rendering it. For example you could write this...
808808
809809
```svelte
810810
<table>
@@ -965,7 +965,7 @@ Since these mismatches are extremely rare, Svelte 5 assumes that the values are
965965

966966
### Hydration works differently
967967

968-
Svelte 5 makes use of comments during server side rendering which are used for more robust and efficient hydration on the client. As such, you shouldn't remove comments from your HTML output if you intend to hydrate it, and if you manually authored HTML to be hydrated by a Svelte component, you need to adjust that HTML to include said comments at the correct positions.
968+
Svelte 5 makes use of comments during server-side rendering which are used for more robust and efficient hydration on the client. As such, you shouldn't remove comments from your HTML output if you intend to hydrate it, and if you manually authored HTML to be hydrated by a Svelte component, you need to adjust that HTML to include said comments at the correct positions.
969969
970970
### `onevent` attributes are delegated
971971

0 commit comments

Comments
 (0)