diff --git a/src/html/_js_base.html.template b/src/html/_js_base.html.template index f9fac27261..e92b64036c 100644 --- a/src/html/_js_base.html.template +++ b/src/html/_js_base.html.template @@ -5,7 +5,7 @@ document.createElement("script"), doc.lastChild ); - script.type = "text/javascript"; + script.defer = true; script.src = src; } window.Polymer = { @@ -15,11 +15,9 @@ suppressTemplateNotifications: true, suppressBindingNotifications: true, }; - var webComponentsSupported = - "customElements" in window && - "content" in document.createElement("template"); - if (!webComponentsSupported) { - _ls("/static/polyfills/webcomponents-bundle.js"); + if (!("customElements" in window && + "content" in document.createElement("template"))) { + document.write("