在WordPress Core中包括Awesome?
-
这个想法:
Fontawesome应该包括在WordPress Core中为什么:
If you browse the 1000’s of themes and Plugins already using FA variations, hacked up versions, old versions, new versions, standard, non-standard, SVG, old font files (on and on) it becomes clear that such an unbelievably high percentage of Plugins/themes utilize FA that it should just be a WP utility at this point逻辑:
WordPress与JQuery捆绑在一起,
ergo,它也可以理解fontawesome也应该捆绑大概的概念:
wp_admin_enqueue_font_awesome()类 - 管理面板
wp_enqueue_font_awesome()类 - 前端https://fontawesome.com/v5/docs/web/use-with/wordpress/
仅此简单动作就可以减少世界各地的服务器上使用的空间数量,以将FA资源存储在主题和插件中。雷竞技
现实世界中的问题:
我曾在拥有多达3个插件和2个主题(父母和孩子)的网站上工作,雷竞技不同的版本of FA installed – I notice it’s taking up a lot of space, especially when developers are doing things like including ALL the SVG’s or the old versions with the font files… What compounds the issue even worse is when 2 more Plugins have “their own icon libraries” which range from ‘absurd’ to ‘meh’ – so now ya got 8 “icon libraries” to mess with (WP icons included).让我想起了WooCommerce插件和PMPRO插件和BuddyPress插件和BBPRESS插件的旧$ jQuery“无冲突”问题,all shosed a雷竞技ster and bbpress插件都将其推入1个站点…
- 你一定是登录回复此主题。