use a (Polymer) web component within a plugin (or theme)?

I've recently learned about Web Components (sorry I'm late, i'm not a pro developer :)) and, well, they a

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 !

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745347218a4623610.html

相关推荐

  • use a (Polymer) web component within a plugin (or theme)?

    I've recently learned about Web Components (sorry I'm late, i'm not a pro developer :)) and, well, they a

    15小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信