title: Is there an advantage to dynamically loading/unloading javascript and css stylesheets?
body: <p><strong>Background:</strong></p>
  
  <p>I'm putting together a site that will use ajax as a primary method of changing the content. That way the main frame and images will not have to be constantly reloaded with every page change. The main frame has its own site.css stylesheet.</p>
  
  <p><strong>Question 1:</strong></p>
  
  <p>Is it worthwhile to put all the stylesheet information into a single stylesheet? I think that this would make the website less modular. Everytime a new page or content is added/removed the css would have to be updated (given the content requires different style information).</p>
  
  <p><strong>Question 1.1:</strong></p>
  
  <p>Same question but with javascript.</p>
  
  <p><strong>Question 2:</strong></p>
  
  <p>If it is worthwhile (as I think it is) to have multiple stylesheets, is it beneficial to unload a stylesheet when its not in use. For example, I load the profile.php page so I dynamically load the profile.css. The user then changes to the settings.php page, I unload the profile.css and load the settings.css. Is this constant loading/unloading going to tank performance or even save on website size?</p>
  
  <p><strong>Question 2.1</strong></p>
  
  <p>Same question as above but applied to javascript functions.</p>