Skip to content

Commit 30460df

Browse files
committed
add attributes to readme
1 parent e1e356d commit 30460df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Called when the requested script is fully loaded.
2424
### `url` (required)
2525
URL pointing to the script you want to load.
2626

27+
### `attributes`
28+
An object used to define custom attributes to be set on the script element. For example, `attributes={{ id: 'someId', 'data-custom: 'value' }}` will result in `<script id="someId" data-custom="value" />`
29+
2730
## Example
2831
You can use the following code to load jQuery in your app:
2932

0 commit comments

Comments
 (0)