webcomponents / polyfills

Web Components Polyfills
BSD 3-Clause "New" or "Revised" License
1.13k stars 165 forks source link

[WCJS] webcomponents-bundle should define WebComponents.waitFor #49

Open justinfagnani opened 6 years ago

justinfagnani commented 6 years ago

It should be possible to switch from -loader to -bundle a little more easily. waitFor() in bundle could either just work, or produce a nice error message.

orstavik commented 6 years ago

I have set up the following test that might illustrate how this issue can be solved: https://rawgit.com/orstavik/JoiComponents/master/test/polyfill/r_925/index.html The test runs 4 iframes that loads the -loader.js and the -bundle.js both sync and async.

You can also view this test: https://rawgit.com/orstavik/JoiComponents/master/test/polyfill/q_frame/index.html Same set up, but this time the "mini-framework" windows.WebComponents.waitFor++ is separated out and loaded with the entrypoint.html file.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.