File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -82,17 +82,17 @@ declare const css: (files:string|string[]) => Promise<void>;
82
82
83
83
` ` ` html
84
84
<!-- Lazy load Web Components by tagging custom elements with the web- component attribute. -->
85
+ <!-- In this example the custom- element .js file will be imported from the configured jsDir directory. -->
85
86
< custom- element web- component>< / custom- element>
86
87
88
+ <!-- You can override the default import behavior by providing a custom file name, relative path, or a URL. -->
89
+ < custom- element web- component= " custom-file-name.js" >< / custom- element>
90
+
87
91
<!-- By default components are loaded and mounted when they enter the viewport. -->
88
- <!-- You can bypass the lazy loader using the loading attribute. -->
92
+ <!-- You can bypass the lazy loader by using the loading attribute. -->
89
93
< custom- element web- component loading= " eager" >< / custom- element>
90
94
91
- <!-- Lazy load CSS by attaching the css attribute to any element within the documents body. -->
92
- <!-- You can load multiple files using a whitespace separator . The .css file extenstion is optional. -->
95
+ <!-- You can lazy load CSS by attaching the css attribute to any element within the documents body. -->
96
+ <!-- You can load multiple files using a whitespace separator . Note that the .css file extenstion is optional. -->
93
97
< div class = " my-awesome-class" css= " awesome-transitions awesome.css" >< / div>
94
-
95
- <!-- By default Lazy Loader will attempt to load a file from the jsDir directory using the custom elements tag name. -->
96
- <!-- You can override the default behavior by providing a custom file name, relative path, or a URL . -->
97
- < custom- element web- component= " custom-file-name.js" >< / custom- element>
98
98
` ` `
You can’t perform that action at this time.
0 commit comments