Encapsulation of pluggable data for the plugin

Can you suggest how to implement that scripts and styles that belong to the plugin connected only to those pages on which they are involved?

I have 18 stylesheets and more than 25 scripts plugged into the
tag of each page, which I don’t need on the Home page, Simple page, Post, Categoty etc. http://joxi.ru/p27djMOCZ03dJA This screws up performance and Google metrics

How add that sctripts and styles only for pages where they need ? Somthing like…

if (is_page('user')):
        wp_enqueue_style('um_componets',);
endif;

Thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer