title: Nodejs getting all needed scripts and stylesheets route from a page request(without browsers)
body: <p>I'm wondering if it is possible for me to get all the scripts and stylesheets routes I need from a html file.(<strong>not using browsers at all.</strong>)</p>
  
  <p>for example:</p>
  
  <p>I run <code>index.html</code>, and the website need <code>./style.css</code> and also need <code>./script.js</code> and lot of images.</p>
  
  <hr>
  
  <p>How could I know what <code>index.html</code> need the routes of <code>style.css</code> and <code>script.js</code> and images.</p>
  
  <p><strong>another question:</strong> Does the browser works like rendering HTML file while it need some files, the browser request to server and wait for response? So is there a way I could use nodejs to analog the action and not using browsers?</p>