# Three Javascript injection

**URL:** <https://forum.inductiveautomation.com/t/three-javascript-injection/106832>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 29, 2025, 7:00pm UTC](https://forum.inductiveautomation.com/t/three-javascript-injection/106832 "2025-05-29T19:00:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 2, 2025, 8:57am UTC](https://forum.inductiveautomation.com/t/three-javascript-injection/106832/5 "2025-06-02T08:57:52Z")

</div>

If you miniefied a whole lib, you should definitly put it into either a module,  
or if you are not familiar enough with JAVA you should put the mini.js script into injectables.

Check out this post, here i copied a mini lib to injectable/head.txt. and call its functions in a markdown

> [@Adding moving particles to the background](https://forum.inductiveautomation.com/t/adding-moving-particles-to-the-background/98283/10):
>
> i think i coppied different json than the front page example, and maybe missing some css. this head.txt has to go here(depending on instal folder, might need to create injectables yourself too) C:\Program Files\Inductive Automation\Ignition\data\modules\com.inductiveautomation.perspective\injectables (copy pasted from [https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js](https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js)) [head\_bottom.txt](https://forum.inductiveautomation.com/uploads/short-url/qcsBo4SN24cig9PP6chJ9O4IHv7.txt) (22.6 KB) Than a simple view with simple js code code = """\<img style='display:none'…

That said a module for three.js is probably something other people are interested in too.

---

_[View the full topic](https://forum.inductiveautomation.com/t/three-javascript-injection/106832)._
