From dab0de04e474a11311bf004d26ce238e512dbf2c Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 10 May 2016 20:42:09 +0200 Subject: Include JS resources before main JS code --- include/classes/BigPipe/BigPipe.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/classes/BigPipe/BigPipe.php') diff --git a/include/classes/BigPipe/BigPipe.php b/include/classes/BigPipe/BigPipe.php index 63cb711..39a812d 100755 --- a/include/classes/BigPipe/BigPipe.php +++ b/include/classes/BigPipe/BigPipe.php @@ -70,10 +70,6 @@ class BigPipe { foreach(array_reverse(self::$pagelets) as $priority => $pagelets) { foreach($pagelets as $Pagelet) { if(!self::isEnabled()) { - if($Pagelet->getJSCode()) { - echo ''."\n"; - } - foreach($Pagelet->getCSSFiles() as $CSSFile) { echo ''."\n"; } @@ -81,6 +77,10 @@ class BigPipe { foreach($Pagelet->getJSFiles() as $JSFile) { echo ''."\n"; } + + if($Pagelet->getJSCode()) { + echo ''."\n"; + } } else { -- cgit v1.2.3