# How to load server side script in ionic app just like a browser (client) does?

**URL:** <https://forum.ionicframework.com/t/how-to-load-server-side-script-in-ionic-app-just-like-a-browser-client-does/57211>\
**Category:** ionic-v1\
**Created:** [July 11, 2016, 5:30pm UTC](https://forum.ionicframework.com/t/how-to-load-server-side-script-in-ionic-app-just-like-a-browser-client-does/57211 "2016-07-11T17:30:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hosais](https://avatars.discourse-cdn.com/v4/letter/h/91b2a8/32.png) [@hosais](https://forum.ionicframework.com/u/hosais)\
**Post date:** [July 11, 2016, 5:30pm UTC](https://forum.ionicframework.com/t/how-to-load-server-side-script-in-ionic-app-just-like-a-browser-client-does/57211/1 "2016-07-11T17:30:01Z")

</div>

Hi,

I had a node.js server and browser client and would like to change the browser client to a mobile app.

In my node.js application, there are scripts on the server and the client run the script locally with `<script src="/server/dir/code/code.js></script>`. The client have the code through http request to the node.js server.

Now in an ionic app, we have index.html and templates. The index.html load local js with `<script src="local_dir/code.js"></script>.` For example, `<script src="js/app.js"></script>`.

Now how can I refer to server side script?

Thanks.
