PL-600 · Question #72
PL-600 Question #72: Real Exam Question with Answer & Explanation
The correct answer is A: Consolidate and reduce scripts.. Consolidating scripts (A) reduces the number of JavaScript files the browser must download and parse, directly cutting load time - fewer HTTP requests and less execution overhead. Removing unnecessary fields (D) reduces the data the server must retrieve and the DOM elements the b
Question
You are evaluating a solution design for a model-driven app that will have a large number of complex forms. Many of the forms take up to 10 seconds to load. You need to recommend solution to speed up loading times for the forms. Which two solutions should you recommend? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
Options
- AConsolidate and reduce scripts.
- BUse synchronous JavaScript requests.
- CMove scripts into the OnLoad event.
- DRemove unnecessary fields.
Explanation
Consolidating scripts (A) reduces the number of JavaScript files the browser must download and parse, directly cutting load time - fewer HTTP requests and less execution overhead. Removing unnecessary fields (D) reduces the data the server must retrieve and the DOM elements the browser must render, which is often the biggest contributor to slow form loads in model-driven apps.
Why the distractors are wrong:
- B (Synchronous JavaScript) is the opposite of best practice - synchronous requests block the browser's main thread, freezing the UI until each request completes, which would make loading worse, not better.
- C (Move scripts to OnLoad) doesn't reduce the amount of work being done; in model-driven apps, OnLoad is already a common place for scripts, and loading more there can actually increase perceived load time by delaying interactivity.
Memory tip: Think "trim the fat" - the two correct answers both remove something (redundant script code, unnecessary fields). Any answer that adds work or uses a blocking pattern (synchronous) is a red flag on performance questions.
Topics
Community Discussion
No community discussion yet for this question.