Merge pull request #5529 from michaelletzgus/optimize_js_order

Optimize performance / Load CSS and JS in parallel on firefox
This commit is contained in:
Morris Jobke 2017-07-07 11:16:31 +02:00 committed by GitHub
commit c2ba5e2884
1 changed files with 3 additions and 3 deletions

View File

@ -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']);
}
}
/**