Skip to main content

Module partial_updates

Module partial_updates 

Available on crate features html and http only.
Expand description

Streaming HTML response for Chrome declarative partial updates.

Flushes a shell (with <?marker name="…"> placeholders) immediately, then emits one <template for="name">…</template> body chunk per fragment as each fragment future resolves — in completion order, not declaration order. Each chunk is followed by \n<wbr> so the official polyfill can swap every fragment at its own arrival rather than one step behind: it defers a swap while the template has no nextElementSibling, and <wbr> (an invisible HTMLElement) is the smallest thing that satisfies that check. Mirrors the spirit of Google’s photo-album demo.

Structs§

PartialUpdates
A streaming HTML response that fills <?marker name="…"> placeholders out-of-order as fragment futures complete.