Skip to content

Lit Elements on Wordpress #2139

Discussion options

You must be logged in to vote

the difficulty is that the polyfills suggested by Lit Element transpile javascript onto HTML - not javascript onto javascript.

Not quite sure I understand what you mean here, do you mind elaborating a bit or pointing out where in the doc that information is presented?


If I am understanding your post correct though, I think what you're looking for actually spans a couple distinct, but related topics / steps.

Polyfills should typically come first and should be unbundled (minified is fine) and follow the pattern of feature detection / progressive enhancement. If the browser supports something like window.customElements then don't do anything, otherwise, load up that functionality. webcomp…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JacobWeinbren
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants