Forum How do I...?

Order in which JavaScript Loads

jhorowitz
If I load a JavaScript file with the --script=FILE command, is there any way to guarantee that it'll run before the <script> tags in my HTML document?

For instance, if one of my scripts in the HTML relies on JQuery, and I pass query in with --script, can I be sure it'll run first every time?
mikeday
Yes, all of the scripts specified on the command line should be executed before any of the scripts in the document.
jhorowitz
Thanks!