# Nodered template \<script type="text/javascript" src="/js/library.nocache.js"\>\</script\>

**URL:** https://discourse.nodered.org/t/nodered-template-script-type-text-javascript-src-js-library-nocache-js-script/87327
**Category:** General
**Created:** [19 April 2024 05:35 UTC](https://discourse.nodered.org/t/nodered-template-script-type-text-javascript-src-js-library-nocache-js-script/87327 "2024-04-19T05:35:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)
#### Post date: [19 April 2024 05:35 UTC](https://discourse.nodered.org/t/nodered-template-script-type-text-javascript-src-js-library-nocache-js-script/87327/1 "2024-04-19T05:35:16Z")

</div>

Hi all, I'm writing a template node in node red. The html page require import an external js file and I put the external projects in ~/.node-red/js/ folder and in html page I wrote

```auto
<script type="text/javascript" src="/js/library.nocache.js"></script>

```

but the library is not loaded. Where is the mistake?  
many thanks in advance

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [19 April 2024 05:40 UTC](https://discourse.nodered.org/t/nodered-template-script-type-text-javascript-src-js-library-nocache-js-script/87327/2 "2024-04-19T05:40:19Z")

</div>

The file needs to be served either by using http-in/out nodes or by setting up a static entry in settings.js file.

See this post: [Refer in node to flows location / Serve files from flows location - #2 by Steve-Mcl](https://discourse.nodered.org/t/refer-in-node-to-flows-location-serve-files-from-flows-location/82835/2)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [18 July 2024 05:41 UTC](https://discourse.nodered.org/t/nodered-template-script-type-text-javascript-src-js-library-nocache-js-script/87327/3 "2024-07-18T05:41:12Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
