Your AI feature isn't slow.
It just waits for the last word before showing the first.
Stream it instead:
1. Read response.body
2. Pipe it through TextDecoderStream
3. Append each chunk as it arrives
15 lines. No library. Every modern browser.
Full code: markodenic.tech/stream-ai-a...
Your AI feature isn't slow. It just waits for the last word before showing the first. Stream it instead: 1. Read response.body 2. Pipe it through TextDecoderStream 3. Append each chunk as it arrives 15 lines. No library. Every modern browser. Full code: markodenic.tech/stream-ai-a...
0 vue
Publié le 12/10/2026 12:23
Your AI feature isn't slow.
It just waits for the last word before showing the first.
Stream it instead:
1. Read response.body
2. Pipe it through TextDecoderStream
3. Append each chunk as it arrives
15 lines. No library. Every modern browser.
Full code: markodenic.tech/stream-ai-a...
0 commentaire
?