最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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 !

发布评论

评论列表(0)

  1. 暂无评论