custom-metadata
custom-metadata copied to clipboard
Conditionally enqueue scripts
Find a way to figure out which fields are loaded on the current page and load scripts conditionally
There are some not-insignificant performance problems that come about as a result of this, when wp_enqueue_media()
is called on sites with large media libraries
Related core tickets: https://core.trac.wordpress.org/ticket/32264 and https://core.trac.wordpress.org/ticket/31071