https://github.com/bahrus/streaming-element
Jake Archibald's Hack for Fast Streaming of HTML content
https://github.com/bahrus/streaming-element
Last synced: 3 months ago
JSON representation
Jake Archibald's Hack for Fast Streaming of HTML content
- Host: GitHub
- URL: https://github.com/bahrus/streaming-element
- Owner: bahrus
- License: mit
- Created: 2017-09-09T00:43:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-09T11:03:21.000Z (over 7 years ago)
- Last Synced: 2024-12-31T23:11:57.185Z (5 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# \
Jake Archibald's Hack for Fast Streaming of HTML content
In light of the phasing out of HTML Imports, it seems appropriate to re-examine best approaches for loading HTML content using native web browser capabilities as much as possible. Jake Archibald proposed a [promising "hack"](https://jakearchibald.com/2016/fun-hacks-faster-content/) that seems to have good performance metrics. Credit for original idea may go to GitHub. This component is simply a port of the code from Jake Archibald's [demo page] into webcomponents.org.
The web component has no dependencies. The Polymer stubs are there simply to make integration into WebComponents.org smoother.
## Install the Polymer-CLI
First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your element locally.
## Viewing Your Element
```
$ polymer serve
```## Running Tests
```
$ polymer test
```Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally.