-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de41049
commit 8d40e57
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,8 @@ How to use <b><i>File Loader</b></i>: | |
|
||
You can load a script / stylesheet or <b>MULITPLE</b> scripts & stylesheets like so - | ||
|
||
```js | ||
```html | ||
<script type="module"> | ||
import {FileLoader} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/[email protected]/dist/file-loader.min.js'; | ||
async function example_usage(){ | ||
try{ | ||
|
@@ -47,6 +48,7 @@ async function example_usage(){ | |
} | ||
example_usage() | ||
</script> | ||
``` | ||
|
||
|
||
|
@@ -59,7 +61,8 @@ How to use <b><i>File Loader</b></i> to load files from a <b>template</b>: | |
|
||
You can store your file(s) to load as a <code>json</code> file and fetch them via a URL. Example below - | ||
|
||
```js | ||
```html | ||
<script type="module"> | ||
import {FileLoader} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/[email protected]/dist/file-loader.min.js'; | ||
async function load_files_from_template(){ | ||
try{ | ||
|
@@ -71,6 +74,7 @@ async function load_files_from_template(){ | |
} | ||
load_files_from_template() | ||
</script> | ||
``` | ||
|
||
## Append to head | ||
|