$procache→script()
Generate an HTML Javascript <script>
tag with the given files merged
Usage
// basic usage
$string = $procache->script($files);
// usage with all arguments
$string = $procache->script($files, bool $minify = true, string $type = '');
Arguments
Name | Type(s) | Description |
---|---|---|
$files | array string WireArray | Array or CSV string of JS file URLs |
$minify (optional) | bool | Also minify? Default:true |
$type (optional) | string | Optionally specify type "defer" or "async" |
Return value
string
Rerged file URL
$procache methods and properties
API reference based on ProcessWire core version 3.0.252