]> _ Git - fluidbook-v3.git/commitdiff
WIP #1409 @0.75
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 15 May 2017 13:26:08 +0000 (13:26 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 15 May 2017 13:26:08 +0000 (13:26 +0000)
framework/application/layouts/scripts/layout.phtml

index e932086afeb72029a6682a1ad74b201f21605099..89de1743ae6cb24ac9f920da75d99aa5977eb310 100644 (file)
@@ -11,7 +11,11 @@ $this->headScript()->addIEConditionnals()->addFastClick();
 $this->headScript()->appendFile('/js/002-common.js');
 $this->headLink()->appendStylesheet('/less/002-common.less', 'all');
 
-$this->headScript()->addTagHandler(true); // Used by related articles selector in admin
+// TagHandler loads JQuery-UI JS files, which are very heavy and are only needed by admin
+// Ensure that these files aren't included for normal visitors...
+if ($this->acl()->isAllowed('edition')) {
+    $this->headScript()->addTagHandler(true); // Used by related articles selector in admin
+}
 
 /**
  * Exemples d'intégrations de webfonts