mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 14:26:35 +00:00
Improve loading speed
This commit is contained in:
parent
d2be4d0251
commit
6685d65740
@ -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();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -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]]">
|
||||||
|
@ -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);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -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'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user