Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 774 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 774 Bytes

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 point
  • polyfillRootUrl: 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.