nerdexam
Microsoft

70-515 · Question #62

You are implementing an ASP.NET application that makes extensive use of JavaScript libraries. Not all pages use all scripts, and some scripts depend on other scripts. When these libraries load…

The correct answer is A. In your site's master page, add a call to Sys.loader.defineScripts to define each of the scripts D. In each page that uses scripts, add a call to Sys.require for each script that is needed in that. See the full explanation below for the reasoning.

Question

You are implementing an ASP.NET application that makes extensive use of JavaScript libraries. Not all pages use all scripts, and some scripts depend on other scripts. When these libraries load sequentially, some of your pages load too slowly. You need to use the ASP.NET Ajax Library Script Loader to load these scripts in parallel. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AIn your site's master page, add a call to Sys.loader.defineScripts to define each of the scripts
  • BIn your site's master page, add a call to Sys.loader.registerScript to define each of the scripts
  • CIn each page that uses scripts, add a call to Sys.get for each script that is needed in that page.
  • DIn each page that uses scripts, add a call to Sys.require for each script that is needed in that

How the community answered

(35 responses)
  • A
    83% (29)
  • B
    6% (2)
  • C
    11% (4)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice