Minify ha-style/Roboto and load asynchronously (#18226)

This commit is contained in:
Steve Repsher
2023-10-16 14:37:50 -04:00
committed by GitHub
parent a08185a1a5
commit 3b2f6d71f5
16 changed files with 571 additions and 568 deletions

View File

@@ -1,15 +1,15 @@
// Compat needs to be first import
import "../../src/resources/compatibility";
import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings";
import "../../src/resources/roboto";
import "../../src/resources/ha-style";
import "../../src/resources/safari-14-attachshadow-patch";
import "./hassio-main";
import("../../src/resources/ha-style");
setCancelSyntheticClickEvents(false);
const styleEl = document.createElement("style");
styleEl.innerHTML = `
styleEl.textContent = `
body {
font-family: Roboto, sans-serif;
-moz-osx-font-smoothing: grayscale;