I have a bunch of functionality being added to a Wordpress site including files in functions.php but I'm worried about performance. All of these files are included for every page request and not all pages require all the extra functionality.
Drupal's menu system allows you to only include files for certain URLs and this is supposed to reduce overhead. Is there a similar approach for Wordpress or I shouldn't fret over this?
Thanks!
Update to clarify: I meant including PHP files with extra functionality in new classes or functions. I'm not talking about CSS, Javascript or templates, which of course, have their own ways of being included.
wp_enqueue_scriptandwp_enqueue_styleto conditionally add in scripts and styles (View Codex) you can even conditionally include templates but you'll need to be more specific for what it is you're looking for.spl_autoload_register(), that loads files with undeclared classes. However this is a PHP functionality not directly related to Wordpress.