Comments (2)
I think you are mistaken or I'm misunderstanding your request. The way it works are the data functions become part of the main bundle(index.js
) but the pages end up in their own that are lazy-loaded (ie.. [...stories]-5c9c8b24.js
, [id]-68725012.js
, [id]-88fc554f.js
). The reason for this is to allow parallel data fetching when navigating the routes. We can fetch data and page code at the same time even in nested routes instead of causing client-side waterfalls.
CSS should split already as well. The Hackernews demo just has global CSS so I did it that way when I copied it, but if you import it in the page it won't be loaded until that point. Alongside current route preload tags on SSR, to my knowledge we already have the optimal setup here.
from solid-start.
Yes I was wrong, thanks for clarifying this. I will close this issue.
from solid-start.
Related Issues (20)
- [Bug?]: Edits to CSS modules do not trigger HMR and won't update without a page refresh HOT 6
- [Bug?]: required `<style>` tag is removed on navigation
- SSR with `<Suspense/>` doesn't work anymore as it used to HOT 10
- Use CLI command to create a project, throw error: Something went wrong HOT 2
- [Bug?]: HMR briefly updates before reverting in docker container with windows host. HOT 2
- [Bug?]: Page Nav randomly into Blank, with "Uncaught (in promise) SyntaxError: missing ) after argument list"
- [Bug?]: <HttpStatusCode> doesn't work in mode:async HOT 2
- [Bug?]: unclosed-tags inside of innerHTML result in hydration mismatch HOT 2
- [Bug?] The response ignores multi-valued headers HOT 1
- [Ecosystem CI]: Integration in the vite-ecosystem-ci HOT 1
- [Bug?]: Erroneous 404s when rapidly switching routes HOT 3
- [Feature?]: I would like to be enable to pass a router before ssr, so any microframework (backend) can be bridged HOT 2
- [Bug?]: No route matched for preloading js assets HOT 6
- [Bug?]: createResource() throws "Hydration Mismatch" errors on page load HOT 1
- How to create a SSG site? HOT 4
- [Bug?]: Middleware with returned undici response ignores the content-type if the response body is async. HOT 3
- [Bug?]: client only doesn't work anymore for `props.children` HOT 6
- [Bug?]: Catch-all that starts with number after ellipsis in filename causes hydration errors in nested paths on dev HOT 1
- [Bug?]: Latest Vinxi (>= 0.3.11) causes layout shifts in dev HOT 4
- [Bug?]: Unable to use `ErrorBoundary` when throwing Error from cached function in combination with `load` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solid-start.