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.
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).
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.