From 7fb910bf216eee45fa7bcada5ab580d39f00bcb8 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 26 May 2014 13:46:14 +0000 Subject: [PATCH] layout/menu: don't show uncollapsed loading menu We have a no-JS-friendly CSS showing the menu uncollapsed unless JS is fully loaded. Even if the page loads pretty fast this looks still ugly in JS-enabled browsers. This patch adds a JS-snippet removing the no-js class from the HTML element before the rendering engine reaches the body. You'll see no more flickering in your JS-enabled browser. fixes #6307 --- application/layouts/scripts/layout.phtml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/layouts/scripts/layout.phtml b/application/layouts/scripts/layout.phtml index c527edbd5..5c91b4b48 100644 --- a/application/layouts/scripts/layout.phtml +++ b/application/layouts/scripts/layout.phtml @@ -30,6 +30,12 @@ $isIframe = isset($_GET['_render']) && $_GET['_render'] === 'iframe'; +