Sys.require vs Sys.loadscripts vs Sys.loader

I'm having a hard time finding clear documentation on loading scripts using the Microsoft AJAX framework.

Can anyone tell me the difference between:

  • Sys.require
  • Sys.loadscripts
  • Sys.loader.registerScripts
  • Sys.loader.defineScripts

source to share

1 answer


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.


takes an array of paths to JS files that are similarly loaded in parallel, there are some details here .



All Articles