Script Downloader help


#1

I’d like to know how to use this node. Not sure what to plug into the ‘external scripts’ field.
Thanks!


#2

You can use it to load third party libraries.
As an example you can load https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js and then use moment in all your Javascript nodes and expressions.

Note that the libraries will be loaded asynchronously so the code won’t run until it’s been downloaded, and Noodl doesn’t wait for that.
So it might be useful to use the outputs of the scripts downloader to delay any Javascript code that depends on it.

It’s basically like adding a <script src='http://....> tag in the <body> of the current document.