How to load js script in Phoenix?

Phoenix doesn’t have anything to do with JS.

  • node/npm is used as tooling for building assets used by the page inside the browser (and some development support like live reloading).
  • Other than that JS files are sent to the browser for execution.

Maybe this might be of interest:

1 Like