JavaScript URLs
Used by the js() helper
Kirby::plugin('my/js', [
  'components' => [
    'js' => function (Kirby $kirby, string $url, $options = null): string {
      // create fingerprint for cache busting
      $fingerprint = md5_file($url);
      return $url . '?' . $fingerprint;
    }
  ]
]);Parameters
| Name | Type | Default | Description | 
|---|---|---|---|
| $kirbyrequired | Kirby\Cms\App | no default value | |
| $urlrequired | string | no default value | Relative or absolute URL | 
| $options | stringorarray | null | An array of attributes for the link tag or a media attribute string | 
Return type
string