Improve loading speed

This commit is contained in:
Paulus Schoutsen 2015-11-28 18:13:14 -08:00
parent d2be4d0251
commit 6685d65740
4 changed files with 9 additions and 6 deletions

View File

@ -72,10 +72,6 @@ export default new Polymer({
startLocalStoragePreferencesSync(); startLocalStoragePreferencesSync();
// remove the HTML init message
const initMsg = document.getElementById('init');
initMsg.parentElement.removeChild(initMsg);
this.loadIcons(); this.loadIcons();
}, },
}); });

View File

@ -51,7 +51,7 @@
<template> <template>
<div class="layout vertical center center-center fit"> <div class="layout vertical center center-center fit">
<img src="/static/splash.png" height="230" /> <img src="/static/favicon-192x192.png" height="192" />
<a href="#" id="hideKeyboardOnFocus"></a> <a href="#" id="hideKeyboardOnFocus"></a>
<div class='interact'> <div class='interact'>
<div id='loginform' hidden$="[[showLoading]]"> <div id='loginform' hidden$="[[showLoading]]">

View File

@ -84,4 +84,10 @@ export default new Polymer({
validateAuth(this.$.passwordInput.value, this.$.rememberLogin.checked); validateAuth(this.$.passwordInput.value, this.$.rememberLogin.checked);
}, },
attached() {
// remove the HTML init message
const initMsg = document.getElementById('init');
initMsg.parentElement.removeChild(initMsg);
},
}); });

View File

@ -56,7 +56,8 @@
<div class='content fit'> <div class='content fit'>
<div class='about'> <div class='about'>
<p class='version'> <p class='version'>
<a href='https://home-assistant.io'><img src="/static/splash.png" height="230" /></a><br /> <a href='https://home-assistant.io'><img src="/static/favicon-192x192.png" height="192" /></a><br />
Home Assistant<br />
[[hassVersion]] [[hassVersion]]
</p> </p>
<p class='develop'> <p class='develop'>