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
- Host: GitHub
- URL: https://github.com/niutech/phooos
- Owner: niutech
- Created: 2024-04-05T00:23:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-07T21:50:45.000Z (9 months ago)
- Last Synced: 2024-12-29T18:48:34.066Z (5 months ago)
- Topics: html, ooo, shadow-dom, streaming
- Language: HTML
- Homepage: https://kodus.pl/
- Size: 55.7 KB
- Stars: 30
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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