Sys.require vs Sys.loadscripts vs Sys.loader
1 answer
defineScripts
allows you to specify the set of JS files your site uses and the dependencies between them, for example. jQueryUI has a jQuery dependency. Here's an example here .
If you then use Sys.require
to indicate that one of these scripts is used on the page, then the script plus its dependencies will be loaded in parallel, here's an example of that at the bottom of this page.
loadScripts
takes an array of paths to JS files that are similarly loaded in parallel, there are some details here .
+1
source to share