When trying to load a script URL like
$response->getScript('test.js');
The HTML response does not contain ANY reference to 'test.js'. How is this supposed to work?
This works:
$response->include_script($files)
But I would like to be able to use a callback function that is called when the script is loaded, which getScript() provides:
$response->getScript('jqueryMaskLibrary.js', new PheryFunction('console.log("mask library is loaded, please go ahead and use it");');