Update script calls
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 25 May 2017 17:36:47 +0000 (13:36 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 25 May 2017 17:36:47 +0000 (13:36 -0400)
Use async attribute for scripts

Toolkit/Common.php

index 2ff5197..ea062a8 100644 (file)
@@ -897,7 +897,7 @@ class Toolkit_Common
             unset($uniqueScripts[$key]);
             array_unshift($uniqueScripts, $jquery);
         }
-        $format = '<script type="text/javascript" src="%s"></script>';
+        $format = '<script async type="text/javascript" src="%s"></script>';
 
         $ret = '';
         $baseUrlStrLen = strlen(MEDIA_BASE_URL);