title: SAPUI5/OpenUI5 - How to load resources outside application folder?
body: <p>I've found several ways to register and load sources within the current application folder (<a href="https://sapui5.netweaver.ondemand.com/sdk/docs/guide/9c5a9619f69f4a819f91fc89d9ff56f1.html" rel="nofollow noreferrer">https://sapui5.netweaver.ondemand.com/sdk/docs/guide/9c5a9619f69f4a819f91fc89d9ff56f1.html</a>)</p>
  
  <p>But how to do this in javascript code (not the html-file) when I want to reuse components or controls from outside the current application, for instance from a reusable custom ui5-control-library project?</p>
  
  <p>so for instance, my current application root is here:
  <a href="http://www.example.org/ui5projects/application1" rel="nofollow noreferrer">http://www.example.org/ui5projects/application1</a>
  and within this application I want to load sources from here
  <a href="http://www.example.org/ui5projects/controllibraryproject" rel="nofollow noreferrer">http://www.example.org/ui5projects/controllibraryproject</a>
  in order to reuse coding over several projects?</p>
  
  <p>As far as I understand I'd have to use
  <a href="https://openui5.hana.ondemand.com/docs/api/symbols/jQuery.sap.html#.registerModulePath" rel="nofollow noreferrer">https://openui5.hana.ondemand.com/docs/api/symbols/jQuery.sap.html#.registerModulePath</a> using the listed parameter or <a href="https://openui5.hana.ondemand.com/docs/api/symbols/jQuery.sap.html#.includeScript" rel="nofollow noreferrer">https://openui5.hana.ondemand.com/docs/api/symbols/jQuery.sap.html#.includeScript</a> for what I want to achieve?</p>
  
  <p>I've found a similar question here <a href="https://stackoverflow.com/questions/28016642/adding-a-custom-library-as-a-dependency-in-sap-fiori?rq=1">Adding a custom library as a dependency in SAP Fiori</a> but I'm not getting it running using registerModulePath</p>