title: Load required javascripts and css only
body: <p>Is there any way to exclude unused javascript and css code and load only the required code for a particular web page?</p>
  
  <p>Lets take an example, In web development, for any web page, there are so many javascripts and css files get included. though the page requires only 20% of the code. Is there some tool which finds dependencies and create a bundle for required code (say 20%) only.</p>
  
  <p>Platform:
  Web server: Apache, nginx
  Scripting language: php</p>