File size: 1,048 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Title } from '@solidjs/meta'
import { PostViewer } from '~/components/post-viewer'
import { UserInfo } from '~/components/user-info'

export default function Streamed() {
  return (
    <main>
      <Title>Solid Query - Streamed</Title>

      <h1>Solid Query - Streamed Example</h1>

      <div class="description">
        <p>
          HTML is streamed from the server ASAP, reducing key metrics such as
          TTFB and TTI. Suspended queries are streamed to the client when they
          resolve on the server. This is represented in your devtools by the
          green and blue chunks of the waterfall.
        </p>

        <p>
          Clients with javascript disabled will see the loading state for both
          queries. (try turning off javascript and reloading this page)
        </p>

        <img
          class="description_img"
          src="/imgs/streaming.png"
          alt="devtools streaming request"
        />
      </div>

      <UserInfo sleep={2500} />

      <PostViewer sleep={300} />
    </main>
  )
}