From 0acb0cfb9d43d340a4253323372ac0fff4ddcf36 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Mon, 13 Jan 2025 17:06:07 +0200 Subject: [PATCH] docs: load demo deps early on Closes #2097 --- docs/_includes/partials/javascript/dsd-init.html | 14 ++++++++++++++ docs/_includes/partials/javascript/global.html | 11 ++--------- docs/elements/demo.html | 9 +-------- 3 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 docs/_includes/partials/javascript/dsd-init.html diff --git a/docs/_includes/partials/javascript/dsd-init.html b/docs/_includes/partials/javascript/dsd-init.html new file mode 100644 index 0000000000..020d018c5e --- /dev/null +++ b/docs/_includes/partials/javascript/dsd-init.html @@ -0,0 +1,14 @@ + diff --git a/docs/_includes/partials/javascript/global.html b/docs/_includes/partials/javascript/global.html index 28f7044e6c..1fc0b8907d 100644 --- a/docs/_includes/partials/javascript/global.html +++ b/docs/_includes/partials/javascript/global.html @@ -1,14 +1,6 @@ - {# dsd polyfill needs to happen before hydration attempts #} - - - {# lit-element-hydrate-support needs to be included before lit is loaded #} - + {% include 'partials/javascript/dsd-init.html' %} {# load all components #} {% for tag in importElements %} @@ -17,6 +9,7 @@ {# only load components that need hydrated (aka interactivity) #} + {% include 'partials/javascript/dsd-init.html' %}