2.0.2 • Published 9 months ago
@frankhoodbs/js-loader-cmp v2.0.2
JS Loader component
This is a component that loads Javascript code dynamically creating a script tag.
API Reference
Props
Name | Type | Description |
---|---|---|
data-src | string | Required. The source URL of the script to be loaded |
data-async | string | Determines whether the script should be loaded asynchronously. Accepts only 'true' or 'false', defaults to 'true' |
data-defer | boolean | Determines whether the script execution should be deferred until the page has finished parsing. Accepts only 'true' or 'false', defaults to 'false' |
data-type | boolean | The MIME type of the script, defaults to 'text/javascript' |
data-id | boolean | An optional ID for the script tag |
data-extra-attrs | boolean | Any extra attributes to be added to the script tag in a JSON string format, defaults to '{}' |
Usage/Examples
<js-loader-cmp
data-src="https://www.youtube.com/iframe_api"
data-async="true"
data-defer="true"
/>
2.0.2
9 months ago
2.0.1
9 months ago
1.2.12
10 months ago
1.2.11
10 months ago
1.2.9
12 months ago
1.2.10
12 months ago
1.2.8
1 year ago
1.2.7
1 year ago
1.2.4
1 year ago
1.2.3
1 year ago
1.2.2
1 year ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.17
1 year ago
1.1.16
1 year ago
1.1.15
1 year ago
1.1.14
1 year ago
1.1.13
1 year ago
1.1.12
1 year ago
1.1.11
1 year ago
1.1.10
1 year ago
1.1.9
1 year ago
1.1.8
1 year ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.1
2 years ago
1.1.3
1 year ago
1.1.2
1 year ago
1.0.23
2 years ago
1.0.22
2 years ago
1.0.18
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago