An open API service indexing awesome lists of open source software.

https://github.com/niutech/phooos

Pure HTML Out-Of-Order Streaming (PHOOOS) without JavaScript
https://github.com/niutech/phooos

html ooo shadow-dom streaming

Last synced: 3 months ago
JSON representation

Pure HTML Out-Of-Order Streaming (PHOOOS) without JavaScript

Awesome Lists containing this project

README

        

Pure HTML Out-Of-Order Streaming
================================

Out-Of-Order HTML Streaming without JavaScript\*, using Declarative Shadow DOM, as described in the [recent article by Chris Haynes](https://lamplightdev.com/blog/2024/01/10/streaming-html-out-of-order-without-javascript/), going back to the [older article by Stoyan Stefanov](https://www.phpied.com/progressive-rendering-via-multiple-flushes/).

This repository contains a server-side demo code in PHP and Node.js.

You may need to [turn off output buffering](https://www.jeffgeerling.com/blog/2016/streaming-php-disabling-output-buffering-php-apache-nginx-and-varnish) in your web server and enable chunked transfer encoding for HTML streaming to work.

\* except optional tiny Declarative Shadow DOM polyfill for older browsers.

#### [Try the online demo](https://kodus.pl/)

## License

© 2024 Jerzy Głowacki under MIT License