From 40ea8e5704153c0b7aa573cc2c07c04e290f62df Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Mon, 15 May 2017 13:26:08 +0000 Subject: [PATCH] WIP #1409 @0.75 --- framework/application/layouts/scripts/layout.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/application/layouts/scripts/layout.phtml b/framework/application/layouts/scripts/layout.phtml index e932086..89de174 100644 --- a/framework/application/layouts/scripts/layout.phtml +++ b/framework/application/layouts/scripts/layout.phtml @@ -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 -- 2.39.5