mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 04:36:36 +00:00
Ensure load order (#3346)
This commit is contained in:
parent
2929db5ba4
commit
cdd007cc54
@ -5,7 +5,7 @@
|
|||||||
document.createElement("script"),
|
document.createElement("script"),
|
||||||
doc.lastChild
|
doc.lastChild
|
||||||
);
|
);
|
||||||
script.type = "text/javascript";
|
script.defer = true;
|
||||||
script.src = src;
|
script.src = src;
|
||||||
}
|
}
|
||||||
window.Polymer = {
|
window.Polymer = {
|
||||||
@ -15,11 +15,9 @@
|
|||||||
suppressTemplateNotifications: true,
|
suppressTemplateNotifications: true,
|
||||||
suppressBindingNotifications: true,
|
suppressBindingNotifications: true,
|
||||||
};
|
};
|
||||||
var webComponentsSupported =
|
if (!("customElements" in window &&
|
||||||
"customElements" in window &&
|
"content" in document.createElement("template"))) {
|
||||||
"content" in document.createElement("template");
|
document.write("<script src='/static/polyfills/webcomponents-bundle.js'>");
|
||||||
if (!webComponentsSupported) {
|
|
||||||
_ls("/static/polyfills/webcomponents-bundle.js");
|
|
||||||
}
|
}
|
||||||
var isS101 = /\s+Version\/10\.1(?:\.\d+)?\s+Safari\//.test(navigator.userAgent);
|
var isS101 = /\s+Version\/10\.1(?:\.\d+)?\s+Safari\//.test(navigator.userAgent);
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user