From 16c0fb97d87271e97f3b81bfce529be9c81fba18 Mon Sep 17 00:00:00 2001 From: Michael Prager Date: Wed, 13 Oct 2010 02:35:56 +0200 Subject: [PATCH 1/1] improved performance by preventing calendar data from being loaded twice on startup --- comingNext/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/comingNext/index.html b/comingNext/index.html index 7f974d8..ce12153 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -772,8 +772,12 @@ function init() window.setInterval('updateData()', 1000 * 60 * config['updateDataInterval'].Value); document.getElementById("settingsTitle").innerHTML = getLocalizedText('menu.settings'); - mode = 0; - showHomescreen(); + if (window.innerHeight > 91) { + mode = 0; // we're starting fullscreen, we set mode to homescreen in order to let updateScreen() do all the work for us + } + else { + mode = 1; + } updateScreen(); if (config['useBackgroundImage'].Value) // check for screen rotation every 1 secs -- 2.39.2