I had a quick question regarding how you are supposed to load in scripts with Wordpress. I am developing a theme and I know that the best way to do this is to use the "wp_register_script/wp_register_style" methods and then to enqueue them with "wp_enqueue_script/wp_enqueue_style". Lastly, you add them to the action "wp_enqueue_scripts".
My question is because I'm developing a theme, I have several javascript files I'm enqueueing. Is this a good practice to separate javascript files and enqueue each of them singlely, or should I combine all my javascript files into one file and enqueue just that one file? Ideally, I'd like to be able to keep the files separated for ease-of-future updating, but does this slow Wordpress down when serving your site if it has to enqueue all of those files every time? Does everytime Wordpress serves a page/post, does it have to run through these files, or after it runs once does it cache the files in some way?
I guess I'd like a little more insight on how this action works. Just trying to streamline things best I can. Thanks in advance for the input guys!