diff --git a/preload-cards.js b/preload-cards.js new file mode 100644 index 0000000..d6f63ce --- /dev/null +++ b/preload-cards.js @@ -0,0 +1,6 @@ +// Part of testing for #64: could lazy loading of HA be the culprit? + +const preloadCard = type => window.loadCardHelpers() + .then(({ createCardElement }) => createCardElement({type})) + +preloadCard("custom:power-wheel-card");