diff --git a/bl-kernel/helpers/theme.class.php b/bl-kernel/helpers/theme.class.php
index 6645d35f..f2dd9393 100644
--- a/bl-kernel/helpers/theme.class.php
+++ b/bl-kernel/helpers/theme.class.php
@@ -206,7 +206,7 @@ class Theme {
return $links;
}
- public static function javascript($files, $base=DOMAIN_THEME)
+ public static function javascript($files, $base=DOMAIN_THEME, $attributes="async")
{
if( !is_array($files) ) {
$files = array($files);
@@ -214,15 +214,15 @@ class Theme {
$scripts = '';
foreach($files as $file) {
- $scripts .= ''.PHP_EOL;
+ $scripts .= ''.PHP_EOL;
}
return $scripts;
}
- public static function js($files, $base=DOMAIN_THEME)
+ public static function js($files, $base=DOMAIN_THEME, $attributes="async")
{
- return self::javascript($files, $base);
+ return self::javascript($files, $base, $attributes);
}
public static function plugins($type)