@byuweb/web-components-loader
v1.0.1
Published
BYU theme components loader
Downloads
3
Readme
Web Components Loader
This file is a copy of the webcomponents loader published by the Polymer project. It has been tweaked to interface with our CDN and web components.
How to use
In your components entry point, include the following line:
load(bundleUrl, [polyfillRootUrl])
bundleUrl
: The URL of the bundle relative to the entry pointpolyfillRootUrl
: The root URL of the polyfills (with no trailing slash).
BYU'ism
Because of how we load our components, we had to add lines 174-180 to webcomponents-loader.js and use that to check for the ready state rather than the original document.readyState === 'loading'
statement.