aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-05-10 20:42:09 +0200
committerThomas Lange <code@nerdmind.de>2016-05-10 20:42:09 +0200
commitdab0de04e474a11311bf004d26ce238e512dbf2c (patch)
treece24b6aa7c128f3324db2baf2f70030c1b65c857 /include
parentf178da5b6310619dc5b36025bc94ec8141c68d6b (diff)
downloadbigpipe-dab0de04e474a11311bf004d26ce238e512dbf2c.tar.gz
bigpipe-dab0de04e474a11311bf004d26ce238e512dbf2c.tar.xz
bigpipe-dab0de04e474a11311bf004d26ce238e512dbf2c.zip
Include JS resources before main JS code
Diffstat (limited to 'include')
-rwxr-xr-xinclude/classes/BigPipe/BigPipe.php8
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 {