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

optimization - Can mediaelement-and-play core JS be dequeued?

programmeradmin2浏览0评论

I'd like to understand what is the purpose of the WordPress core javascript file /wp-includes/js/mediaelement/mediaelement-and-player.min.js

I am asking that because it weighs 136KBytes and I'd like to understand if I can avoid to load it for certain websites that eventually do not use that functionalities.

I'd like to understand what is the purpose of the WordPress core javascript file /wp-includes/js/mediaelement/mediaelement-and-player.min.js

I am asking that because it weighs 136KBytes and I'd like to understand if I can avoid to load it for certain websites that eventually do not use that functionalities.

Share Improve this question asked May 6, 2020 at 19:36 DrakeDrake 1,4312 gold badges23 silver badges37 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

It's for the audio and video players used by the [audio] and [video] shortcodes, as well as the Audio and Video widgets, but not the Audio and Video blocks. The script will only be enqueued if you are using the shortcodes or widgets.

发布评论

评论列表(0)

  1. 暂无评论