Register vendor JS/CSS only on pages that require them?
How are the UI Elements included on the page? If you use a shortcode, you can enqueue the js part (wp_enqueue_script) within the shortcode function. Your JS will then be enqueued in the footer. The CSS would have to be enqueued of course in the header, so you have to enqueue it in the wp_enqueue_scripts … Read more