diff options
Diffstat (limited to 'include/classes/BigPipe/BigPipe.php')
-rwxr-xr-x | include/classes/BigPipe/BigPipe.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 '<script>'.$Pagelet->getJSCode().'</script>'."\n"; - } - foreach($Pagelet->getCSSFiles() as $CSSFile) { echo '<link href="'.$CSSFile.'" rel="stylesheet" />'."\n"; } @@ -81,6 +77,10 @@ class BigPipe { foreach($Pagelet->getJSFiles() as $JSFile) { echo '<script src="'.$JSFile.'"></script>'."\n"; } + + if($Pagelet->getJSCode()) { + echo '<script>'.$Pagelet->getJSCode().'</script>'."\n"; + } } else { |