diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-07 11:16:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 11:16:31 +0200 |
commit | c2ba5e2884cad679d8d02dfe7976401c3b03e9ee (patch) | |
tree | 68d634749b64b6bee5dc365bd4e2fc2d26d1b39f | |
parent | b4deba207856e92adfbf7239ea7d2420157993dd (diff) | |
parent | c77fe1ab86160ff426ff41375dbb248c70d9f53d (diff) | |
download | nextcloud-server-c2ba5e2884cad679d8d02dfe7976401c3b03e9ee.tar.gz nextcloud-server-c2ba5e2884cad679d8d02dfe7976401c3b03e9ee.zip |
Merge pull request #5529 from michaelletzgus/optimize_js_order
Optimize performance / Load CSS and JS in parallel on firefox
-rw-r--r-- | lib/private/legacy/template/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php index 208d9fb3f9f..65179a94108 100644 --- a/lib/private/legacy/template/functions.php +++ b/lib/private/legacy/template/functions.php @@ -96,12 +96,12 @@ function emit_script_tag($src, $script_content='') { * @param hash $obj all the script information from template */ function emit_script_loading_tags($obj) { - if (!empty($obj['inline_ocjs'])) { - emit_script_tag('', $obj['inline_ocjs']); - } foreach($obj['jsfiles'] as $jsfile) { emit_script_tag($jsfile, ''); } + if (!empty($obj['inline_ocjs'])) { + emit_script_tag('', $obj['inline_ocjs']); + } } /** |