Importing CSS files add up to 17 seconds per page load #1718
Replies: 1 comment
-
Unfortunately, using these CSS files does include all component styles—as well as the components you're not using. The alternative is to import SCSS component files on an as-needed basis; which will result in a slightly slower developer experience in exchange for serving only what's needed to your users. This is an issue we hope to resolve by v1.0.0. See "SCSS' styling option on the docs: https://carbon-components-svelte.onrender.com/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've currently included the following line in my __layout.svelte:
The problem is that includes everything resulting in a very large file taking ~17 seconds to load each time you visit a page. Is there a way to only include the parts you need making it load quicker?
Beta Was this translation helpful? Give feedback.
All reactions