additional script
Fragment of a discussion from Project:Support desk
- Create a ResourceLoader module for 'jquery.jsonp'
- Create a ResourceLoader module for your script (e.g. 'myextension.foobar' that uses jquery-jsonp, and add 'jquery.json' as a dependency
- call
$out->addModules('myextension.foobar'). Which will instruct the client to load that module and any/all dependencies.
See also: