Skip to content

Commit 8d40e57

Browse files
authored
Updated README.md 📝
1 parent de41049 commit 8d40e57

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ How to use <b><i>File Loader</b></i>:
3535

3636
You can load a script / stylesheet or <b>MULITPLE</b> scripts & stylesheets like so -
3737

38-
```js
38+
```html
39+
<script type="module">
3940
import {FileLoader} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/[email protected]/dist/file-loader.min.js';
4041
async function example_usage(){
4142
try{
@@ -47,6 +48,7 @@ async function example_usage(){
4748
}
4849
4950
example_usage()
51+
</script>
5052
```
5153

5254

@@ -59,7 +61,8 @@ How to use <b><i>File Loader</b></i> to load files from a <b>template</b>:
5961

6062
You can store your file(s) to load as a <code>json</code> file and fetch them via a URL. Example below -
6163

62-
```js
64+
```html
65+
<script type="module">
6366
import {FileLoader} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/[email protected]/dist/file-loader.min.js';
6467
async function load_files_from_template(){
6568
try{
@@ -71,6 +74,7 @@ async function load_files_from_template(){
7174
}
7275
7376
load_files_from_template()
77+
</script>
7478
```
7579

7680
## Append to head

0 commit comments

Comments
 (0)