Skip to content

GoogleChromeLabs/declarative-partial-updates-polyfill

Repository files navigation

Declarative partial updates polyfill

This is a partial polyfill for the Declarative partial updates API.

The polyfill includes a implementation of declarative patching using template elements as described in the Patching explainder.

Other implementations of the Declarative partial updates API are not yet implemented

Requirements

A browser that supports ES6/ES2015 is required for this polyfill.

Usage

Include via npm and a bundler

Note: not added to npm yet

npm install declarative-partial-updates-polyfill
<script type="module" src="./declarative-partial-updates-polyfill/dist/declarative-partial-updates-polyfill.js">

Include via unpkg

Note: not added to npm yet

<script src="https://unpkg.com/declarative-partial-updates-polyfill"></script>

Building from source

git clone https://github.com/GoogleChromeLabs/declarative-partial-updates-polyfill
cd declarative-partial-updates-polyfill
npm i
npm test        # Tests should pass
npm run build   # Outputs minified polyfill to dist/
<script src="/path_to_polyfill/declarative-partial-updates-polyfill.js"></script>

License

Apache 2.0

Contributing

We'd love to accept your patches and contributions to this project. See the enclosed CONTRIBUTING.md for details.

Disclaimer

This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors