diff --git a/agrcache.module b/agrcache.module index 744f6131b..95b070fdc 100644 --- a/agrcache.module +++ b/agrcache.module @@ -189,6 +189,9 @@ function agrcache_get_js($scope = 'header', $javascript = NULL, $skip_alter = FA case 'external': $js_element = $element; + if (!empty($item['#attributes'])) { + $js_element['#attributes'] = $item['#attributes']; + } // Preprocessing for external JavaScript files is ignored. if ($item['defer']) { $js_element['#attributes']['defer'] = 'defer';