Change preload to modulepreload (#8600)

This commit is contained in:
Bram Kragten 2021-03-09 20:39:08 +01:00 committed by GitHub
parent 7f21a2b319
commit 89ecc8bd2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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