From 14d3bb273cbdfff672db48314a8e3c35d00f5acc Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Tue, 3 May 2016 16:42:09 +0200 Subject: [PATCH] Load custom.css after the modules. Fix: #284 --- index.html | 2 +- js/loader.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index d08291cc..26972810 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ - +
diff --git a/js/loader.js b/js/loader.js index 2dbd40b2..da75908e 100644 --- a/js/loader.js +++ b/js/loader.js @@ -34,7 +34,15 @@ var Loader = (function() { loadNextModule(); }); } else { - startModules(); + // All modules loaded. Load custom.css + // This is done after all the moduels so we can + // overwrite all the defined styls. + + loadFile('css/custom.css', function() { + // custom.css loaded. Start all modules. + startModules(); + }); + } };