admin管理员组文章数量:1421303
I've recently learned about Web Components (sorry I'm late, i'm not a pro developer :)) and, well, they are quite awesome.
For the plugin i'm coding, I need a menu exactly like this one, @polymer/paper-menu-button.
Since it already exists as a web component, which should I loose my time coding my own ? :)
- What I see is that a lot of people have been talking about them, but maybe the hype has fallen back ? (a lot of google entries were published in 2017, not so much today)
- I had a try (non-conclusive for now), did install the dependencies using Yarn, but well, it is 2.6 Mo of files for a... menu, which is a lot ! I also have to register several JS files in my plugin; which are still more files to load.
Well, I was wondering if it was a good practice to use web components in Wordpress development, and if you had advices or comments about that.
Thanks !
本文标签: use a (Polymer) web component within a plugin (or theme)
版权声明:本文标题:use a (Polymer) web component within a plugin (or theme)? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745347218a2654545.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论