[whatwg/streams] Add demos of stream-to-DOM and stream-to-HTML (#749)

Add three demos:
* "Append child WritableStream" demos a WritableStream which appends
elements to a DOM node.
* "Streaming element" demos a custom element which exposes a
WritableStream that can be used to write HTML into the element.
* "Streaming element with backpressure" is similar, but applies
backpressure so that the browser remains interactive as the data arrives.

These also demonstrate the streams-compatible TextDecoder interface via
a polyfill, and utilise a polyfill for TransformStream which is not
currently shipping.

Videos of the demos are included so that they can be viewed on browsers
that don't yet have WritableStream implementations.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/749

-- Commit Summary --

  * Add demos of stream-to-DOM and stream-to-HTML

-- File Changes --

    A demos/append-child.html (98)
    A demos/append-child.mp4 (0)
    A demos/data/commits.html (698)
    A demos/data/commits.json (696)
    A demos/index.html (19)
    A demos/resources/commits.css (27)
    A demos/resources/common.css (42)
    A demos/resources/highlight-default.css (99)
    A demos/resources/highlight.pack.js (2)
    A demos/resources/jank-meter.css (13)
    A demos/resources/web-animations.min.js (16)
    A demos/resources/web-animations.min.js.map (1)
    A demos/streaming-element-backpressure.html (60)
    A demos/streaming-element-backpressure.mp4 (0)
    A demos/streaming-element.html (60)
    A demos/streaming-element.mp4 (0)
    A demos/tags/streaming-element-backpressure.js (100)
    A demos/tags/streaming-element.js (55)
    A demos/tags/view-source.js (112)
    A demos/transforms/parse-json.js (7)
    A demos/transforms/split-stream.js (15)
    A demos/transforms/text-encode-transform.js (141)
    A demos/transforms/transform-stream-polyfill.js (490)

-- Patch Links --

https://github.com/whatwg/streams/pull/749.patch
https://github.com/whatwg/streams/pull/749.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/749

Received on Friday, 30 June 2017 15:16:08 UTC