mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Change preload to modulepreload (#8600)
This commit is contained in:
parent
7f21a2b319
commit
89ecc8bd2f
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Home Assistant</title>
|
<title>Home Assistant</title>
|
||||||
<link rel="preload" href="<%= latestPageJS %>" as="script" crossorigin="use-credentials" />
|
<link rel="modulepreload" href="<%= latestPageJS %>" crossorigin="use-credentials" />
|
||||||
<%= renderTemplate('_header') %>
|
<%= renderTemplate('_header') %>
|
||||||
<style>
|
<style>
|
||||||
.content {
|
.content {
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<% if (!useWDS) { %>
|
<% if (!useWDS) { %>
|
||||||
<link rel="preload" href="<%= latestCoreJS %>" as="script" crossorigin="use-credentials" />
|
<link rel="modulepreload" href="<%= latestCoreJS %>" crossorigin="use-credentials" />
|
||||||
<link rel="preload" href="<%= latestAppJS %>" as="script" crossorigin="use-credentials" />
|
<link rel="modulepreload" href="<%= latestAppJS %>" crossorigin="use-credentials" />
|
||||||
<% } %>
|
<% } %>
|
||||||
<%= renderTemplate('_header') %>
|
<%= renderTemplate('_header') %>
|
||||||
<title>Home Assistant</title>
|
<title>Home Assistant</title>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Home Assistant</title>
|
<title>Home Assistant</title>
|
||||||
<link rel="preload" href="<%= latestPageJS %>" as="script" crossorigin="use-credentials" />
|
<link rel="modulepreload" href="<%= latestPageJS %>" crossorigin="use-credentials" />
|
||||||
<%= renderTemplate('_header') %>
|
<%= renderTemplate('_header') %>
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user