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.

0

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.