swift_performance_js_content

Filter for the content of the merged javascript

Parameters

$script

string, contains the merged javascript


Return

string


Example

// add extra javascript for merged script
add_filter('swift_performance_js_content', function($script){
  $script .= 'alert("Hey!")';
 return $script; 
});