Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssr = false; turn off ssr for HTML and JavaScript, but not for CSS. CSS is still server-side rendered. #818

Closed
Mlocik97 opened this issue Apr 1, 2021 · 0 comments · Fixed by #839
Labels
bug Something isn't working

Comments

@Mlocik97
Copy link
Contributor

Mlocik97 commented Apr 1, 2021

Describe the bug
ssr = false; turn off ssr for HTML and JavaScript, but not for CSS. CSS is still server-side rendered.

Logs

To Reproduce
put:

<script context="module">
	export const ssr = false;
	export const router = true;
	export const hydrate = true;
	export const prerender = true;
</script>

to index.svelte in template.

Expected behavior
CSS be client-side rendered (added to DOM by JS)

Information about your SvelteKit Installation:

  • The output of npx envinfo --system --npmPackages svelte,@sveltejs/kit --binaries --browsers
npx: installed 1 in 0.992s

  System:
    OS: Linux 5.8 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz
    Memory: 485.88 MB / 15.46 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Browsers:
    Chrome: 89.0.4389.114
    Firefox: 87.0
  npmPackages:
    @sveltejs/kit: next => 1.0.0-next.66 
    svelte: ^3.29.0 => 3.37.0 
  • Your adapter (e.g. Node, static, Vercel, Begin, etc...)
  • Node, static

Severity
1/10

@benmccann benmccann added the bug Something isn't working label Apr 2, 2021
@Mlocik97 Mlocik97 changed the title ssr = false; turn off ssr for JavaScript, but not for CSS. CSS is still server-side rendered. ssr = false; turn off ssr for HTML and JavaScript, but not for CSS. CSS is still server-side rendered. Apr 2, 2021
Rich-Harris added a commit that referenced this issue Apr 2, 2021
@Rich-Harris Rich-Harris mentioned this issue Apr 2, 2021
5 tasks
Rich-Harris pushed a commit that referenced this issue Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants