Add module preload to demo page (#16274)

pull/16289/head
Steve Repsher 2023-04-24 05:27:40 -04:00 committed by GitHub
parent 609300f40b
commit 4e1e76ccc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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") %>

View File

@ -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;

View File

@ -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);

View File

@ -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);