IME flexibility like this is a net negative.
What I do is:
• define() method like this that uses a static tagName
• no option to change it - you will learn to love my (namespaced) tag names
• MyLib.defineElements() defines them all, but you must call it
• or call define() on your own per element
What I do is:
• define() method like this that uses a static tagName
• no option to change it - you will learn to love my (namespaced) tag names
• MyLib.defineElements() defines them all, but you must call it
• or call define() on your own per element
Reposted from
Zach Leatherman
?nodefine — a pattern to skip automatic Custom Element definitions
www.zachleat.com/web/nodefine/
www.zachleat.com/web/nodefine/
Comments
auto-define also doesn't work the way you think if you don't do it in DOMContentLoaded - app dev should control this