title: Multiple JS files in Chrome Extension - how to load them?
body: <p>I've wrote a Chrome Extension. My background.js file is quite large, so I want to split it to smaller parts and load specified methods when required (some kind of lazy-loading).</p>
  
  <p>I've done this with Firefox:</p>
  
  <pre><code>// ( call for load specified lib )
  var libPath = redExt.basePath + 'content/redExt/lib/' + redExt.browser + '/' + libName + '.js';
  var service = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader);
  service.loadSubScript("chrome://" + libPath);
  // ( executing loaded file )
  </code></pre>
  
  <p>Is there any possiblity to do it similar way in Webkit-based browsers? I've found solutions for how to inject multiple JS files into matching pages (using <code>manifest.json</code>) but cannot find way to include JS file just for extension.</p>