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 | |
minify (optional) | bool | (default=true) |
type (optional) | string | Optionally specify type "defer" or "async" |
Return value
string
With merged file URL
$procache methods and properties
API reference based on ProcessWire core version 3.0.236