Open History to see the last commit
1import { Title } from '@solidjs/meta'
2import { PostViewer } from '~/components/post-viewer'
3import { UserInfo } from '~/components/user-info'
4β
5export default function Streamed() {
6 return (
7 <main>
8 <Title>Solid Query - Streamed</Title>
9β
10 <h1>Solid Query - Streamed Example</h1>
11β
12 <div class="description">
13 <p>
14 HTML is streamed from the server ASAP, reducing key metrics such as
15 TTFB and TTI. Suspended queries are streamed to the client when they
16 resolve on the server. This is represented in your devtools by the
17 green and blue chunks of the waterfall.
18 </p>
19β
20 <p>
21 Clients with javascript disabled will see the loading state for both
22 queries. (try turning off javascript and reloading this page)
23 </p>
24β
25 <img
26 class="description_img"
27 src="/imgs/streaming.png"
28 alt="devtools streaming request"
29 />
30 </div>
31β
32 <UserInfo sleep={2500} />
33β
34 <PostViewer sleep={300} />
35 </main>
36 )
37}