Skip to content

feat: add lightweight server and client resumption - #60

Merged
Marcisbee merged 1 commit into
masterfrom
kode/FrdCZgSN-add-lightweight-resumption-for-server-re
Oct 22, 2026
Merged

Marcisbee merged 1 commit into
masterfrom
kode/FrdCZgSN-add-lightweight-resumption-for-server-re

Conversation

@Marcisbee

Copy link
Copy Markdown
Owner

Server-rendered and streamed Radi pages can now handle clicks without recreating their DOM or rerunning component initialization. resumable carries escaped JSON state and a stream completion marker; resumeClick names a trusted handler; the separate radi/resume bootstrap captures clicks and loads the requested handler on demand.

Delivery is ordered per boundary, with independent boundaries, a bounded queue, loading timeout, retry after load failure, cancellation, and detached-target checks. The bootstrap must execute before interactive markup is parsed. This is an opt-in resumption API: existing closure-based components are not automatically hydrated, and navigation, form submission, and transient-user-activation APIs are not replayed. The documentation and runnable streaming example explain these boundaries.

Validation: 312 browser tests and 10 server tests pass. Type checks, npm build, and built-package export checks pass. Five Chromium HTTP-streaming runs captured two early clicks and keyboard activation while the handler response was delayed, then verified one delivery per interaction, one module request, and identity preservation for the original button and output text node. The example bootstrap is 3,929 minified bytes / 1,709 gzip bytes; warm click-to-text-mutation time was approximately 0.2 ms in each of five local runs. These local measurements exclude first-use network delay and are not field latency claims.

Implements Add lightweight resumption for server-rendered and streamed pages.

@Marcisbee
Marcisbee marked this pull request as ready for review October 22, 2026 10:54
@Marcisbee
Marcisbee merged commit 7df2abc into master Oct 22, 2026
3 checks passed
@Marcisbee
Marcisbee deleted the kode/FrdCZgSN-add-lightweight-resumption-for-server-re branch October 22, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant