Minor Changes
-
refactor: remove web-elements/lazy and loadNewTag (#123)
- remove @lynx-js/web-elements/lazy
- remove loadElement
- remove loadNewTag callback
This is a breaking change
Now we removed the default lazy loading preinstalled in web-core
Please add the following statement in your web project
import "@lynx-js/web-elements/all";
-
feat: use shadowroot to isolate one lynx-view (#198)
Before this commit, we have been detecting if current browser supports the
@scope
rule.
This allows us to scope one lynx-view's styles.After this commit we always create a shadowroot to scope then.
Also for the new shadowroot pattern, we add a new attribute
inject-head-links
.
By default, we will iterate all<link rel="stylesheet">
in the<head>
, and use@import url()
to import them inside the shadowroot.
Developers could add ainject-head-links="false"
to disable this behavior.