Skip to content

Commit

Permalink
Trying to solve #64. Could it be caused by lazy loading in HA? Added …
Browse files Browse the repository at this point in the history
…file.
  • Loading branch information
gurbyz committed Oct 20, 2020
1 parent e2ce88d commit c6b2369
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions preload-cards.js
Original file line number Diff line number Diff line change
@@ -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");

0 comments on commit c6b2369

Please sign in to comment.