Comments (3)
I think this is what you're looking for: https://kit.svelte.dev/docs/load#streaming-with-promises
from kit.
I think this is what you're looking for: https://kit.svelte.dev/docs/load#streaming-with-promises
The data using this method not available in page Source. Its not ssr in sveltkit. Where in nextjs and remix the suspense data are ssr friendly and can be found in page source
from kit.
Sorry for misunderstanding. So the feature request is to stream HTML instead of load data, right?
Related links:
- https://www.builder.io/blog/streaming-is-it-worth-it
- https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming
From builder.io:
A page contains a lot of metadata — most obviously, the <title>. The <title> is problematic for two reasons:
It needs to be streamed relatively early in the response
It usually depends on database response; as in, <title>Details for $product</title>.
These requirements are problematic for solutions that let application components set the <title> (like Helmet), because that means that streaming must pause until whatever component(s) responsible for that title information finish. Such an architecture fundamentally breaks streaming: Any data dependency can block the stream, even if the underlying framework can stream without problems.In practice, this means that a meta-framework must let you send the before later components finish fetching and resolving data. Again, many do not.
from kit.
Related Issues (20)
- Scrollbar is not scrolling the Page HOT 4
- Page breaks on page change HOT 1
- Respect `build.copyPublicDir` config supplied by user
- The `ambient` of the adapters must be added to the generated types
- Change the name of the special `fetch` function HOT 7
- `build` variable in $service-worker module does not include web worker files
- The `base` path from `$app/paths` differs between SSR and client using the default config HOT 6
- option to skip enhanced img in development HOT 1
- add support ot $app/server read() method to cloudflare pages adapter
- Skeleton app in Docker throws SyntaxError: Cannot use import statement outside a module HOT 2
- Share/Inject functions and object instances in universal loaders without globals/singletons HOT 2
- Warn on unused data HOT 1
- Cloudflare: Unsupported Engine Error in @eslint/config-array with Node v18.17.1 and npm v9.6.7 HOT 11
- dependency error when using pnpm HOT 3
- Append Page title to +page.svelte because +page.svelte is confusing HOT 1
- Data from load function is not persistent after rendering HOT 2
- Redirect behaves strangely HOT 2
- Different behaviour if you check two or more times the `type` in `afterNavigate`?
- preloadData does not report errors from server files HOT 1
- docs: use server load function in the `setHeaders` example HOT 6
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 kit.