WA boostrapping mechanism? #1692
Replies: 2 comments
-
|
W3C Slot and Template - is the standard |
Beta Was this translation helpful? Give feedback.
-
You can import Web Awesome using standard ES module imports with or without import maps. Typically, this is better when you're bundling but it's also possible to cherry pick directly from a CDN. However, this means you have to match up imports to every Web Awesome tag you use. So the "standard" option is available, but the Projects / CDN / Autoloader option is far more convenient for a lot of folks who just want to put a single script on the page and start using Web Awesome. We offer
If you're bundling or cherry picking, you don't need to worry about the autoloader's extras. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I still do not understand why WA uses a custom lazy/loading mechanism (including complications such as: allDefined, whenDefined, additionalElements) instead of a more standard approach:
This should work fine with SPA, server-side rendered and html fragments-exchange app, and is more logical and standard - you load only what you need (cherry picking) and only when you need it in a standard way. And I guess, you do not need: allDefined, whenDefined, additionalElements
What am I missing ?
Beta Was this translation helpful? Give feedback.
All reactions