1.2.8 • Published 1 day ago

@frankhoodbs/js-loader-cmp v1.2.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 day ago

JS Loader component

This is a component that loads Javascript code dynamically creating a script tag.

API Reference

Props

NameTypeDescription
data-srcstringRequired. The source URL of the script to be loaded
data-asyncstringDetermines whether the script should be loaded asynchronously. Accepts only 'true' or 'false', defaults to 'true'
data-deferbooleanDetermines whether the script execution should be deferred until the page has finished parsing. Accepts only 'true' or 'false', defaults to 'false'
data-typebooleanThe MIME type of the script, defaults to 'text/javascript'
data-idbooleanAn optional ID for the script tag
data-extra-attrsbooleanAny 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"
/>
1.2.8

1 day ago

1.2.7

1 day ago

1.2.4

2 days ago

1.2.3

6 days ago

1.2.2

19 days ago

1.2.1

22 days ago

1.2.0

23 days ago

1.1.17

23 days ago

1.1.16

2 months ago

1.1.15

2 months ago

1.1.14

2 months ago

1.1.13

2 months ago

1.1.12

3 months ago

1.1.11

3 months ago

1.1.10

4 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.7

4 months ago

1.1.6

4 months ago

1.1.1

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.0.23

7 months ago

1.0.22

7 months ago

1.0.18

7 months ago

1.0.16

7 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago