Working with head and body css/js

Hello,

Is there a recommended way to call CSS and JS files only on specific pages for this theme?
We are working with remote backend sources and we need them added inside the head and at the end of the body.

you can do it like this

if(is_page_template('template-about.php')) :
   wp_enqueue_style();
   wp_register_script();
endif;