what should a html import return as that will lead to a lot of edge cases but i think this will get one of the main default loading algos on the web its the nativ replacement for and gets used in combination with a script that extracts parts of the result or alternativ the element registers it self
if we would for example have a can-component.html that executes a javascript that registers a can-component this would be enough to render component tag
Feature Detection
function supportsImports() {
return 'import' in document.createElement('link');
}
if (supportsImports()) {
// Good to go!
} else {
// Use other libraries/require systems to load files. StealJS
}
HTML now supports that returns a promise that should get integrated so that
https://github.com/canjs/can-util/blob/master/js/import/import.js
The questions here
what should a html import return as that will lead to a lot of edge cases but i think this will get one of the main default loading algos on the web its the nativ replacement for and gets used in combination with a script that extracts parts of the result or alternativ the element registers it self
if we would for example have a can-component.html that executes a javascript that registers a can-component this would be enough to render component tag
Feature Detection
HTML
or