Requirejs add arguments to the script element

Viewed 1333

is it possible to add arguments to the sctipt element

e.g.

<script 
    ...
    src="XX.js"
></script>

i want to add the argument hello="world" so this is added to the page:

<script 
    ... 
    src="XX.js"
    hallo="welt"
></script>

Reason: I have a js library (aloha-editor) which depends on a parameter for loading it's plugins (and the main functionallity is actuall in a plugin). However I only want to load the plugin when the user want's to edit and requirejs is the best choice since it is used at other parts in the application.

1 Answers
Related