From 502f7490ac89ae9343096a92db9da328c14e87d6 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 1 Dec 2019 16:05:02 +0100 Subject: [PATCH] load css --- static/js/home.leftovers.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/static/js/home.leftovers.js b/static/js/home.leftovers.js index 4bf5b22..426c513 100644 --- a/static/js/home.leftovers.js +++ b/static/js/home.leftovers.js @@ -269,12 +269,14 @@ pandora.ui.home = function() { that.showScreen = function(callback) { var $elements = that.find(':not(.logo)'), count = 0; $logo.css({width: '320px'}); - that.css({opacity: 1}).appendTo(Ox.$body); - that.find(':not(#logo)').css({opacity: 1}); - $elements.animate({opacity: 1}, 500, function() { - if (callback && ++count == $elements.length) { - callback(); - } + loadCSS(function() { + that.css({opacity: 1}).appendTo(Ox.$body); + that.find(':not(#logo)').css({opacity: 1}); + $elements.animate({opacity: 1}, 500, function() { + if (callback && ++count == $elements.length) { + callback(); + } + }); }); $findInput.focusInput(true); return that;