Add module preload to demo page (#16274)
parent
609300f40b
commit
4e1e76ccc2
|
@ -2,9 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Home Assistant Demo</title>
|
<title>Home Assistant Demo</title>
|
||||||
<meta charset="utf-8" />
|
<%= renderTemplate("../../../src/html/_header.html.template") %>
|
||||||
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials" />
|
|
||||||
<link rel="icon" href="/static/icons/favicon.ico" />
|
|
||||||
<link rel="mask-icon" href="/static/icons/mask-icon.svg" color="#03a9f4" />
|
<link rel="mask-icon" href="/static/icons/mask-icon.svg" color="#03a9f4" />
|
||||||
<link
|
<link
|
||||||
rel="apple-touch-icon"
|
rel="apple-touch-icon"
|
||||||
|
|
|
@ -6,4 +6,3 @@
|
||||||
<link rel="modulepreload" href="<%= entry %>" crossorigin="use-credentials" />
|
<link rel="modulepreload" href="<%= entry %>" crossorigin="use-credentials" />
|
||||||
<% } %>
|
<% } %>
|
||||||
<% } %>
|
<% } %>
|
||||||
<%= renderTemplate("_style_base.html.template") %>
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>Home Assistant</title>
|
<title>Home Assistant</title>
|
||||||
<%= renderTemplate("_header.html.template") %>
|
<%= renderTemplate("_header.html.template") %>
|
||||||
|
<%= renderTemplate("_style_base.html.template") %>
|
||||||
<style>
|
<style>
|
||||||
.content {
|
.content {
|
||||||
padding: 20px 16px;
|
padding: 20px 16px;
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
<meta name="referrer" content="same-origin" />
|
<meta name="referrer" content="same-origin" />
|
||||||
<meta name="theme-color" content="{{ theme_color }}" />
|
<meta name="theme-color" content="{{ theme_color }}" />
|
||||||
<meta name="color-scheme" content="dark light" />
|
<meta name="color-scheme" content="dark light" />
|
||||||
|
<%= renderTemplate("_style_base.html.template") %>
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
background-color: var(--primary-background-color, #fafafa);
|
background-color: var(--primary-background-color, #fafafa);
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>Home Assistant</title>
|
<title>Home Assistant</title>
|
||||||
<%= renderTemplate("_header.html.template") %>
|
<%= renderTemplate("_header.html.template") %>
|
||||||
|
<%= renderTemplate("_style_base.html.template") %>
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
color: var(--primary-text-color, #212121);
|
color: var(--primary-text-color, #212121);
|
||||||
|
|
Loading…
Reference in New Issue