Skip to content

Commit f6ddc9d

Browse files
authored
Update README.md
1 parent 5fb1cba commit f6ddc9d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ declare const css: (files:string|string[]) => Promise<void>;
8282
8383
```html
8484
<!-- 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. -->
8586
<custom-element web-component></custom-element>
8687
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+
8791
<!-- 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. -->
8993
<custom-element web-component loading="eager"></custom-element>
9094
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. -->
9397
<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>
9898
```

0 commit comments

Comments
 (0)