CRT-450 practice question 20 of 30
What are three capabilities of the tag when loading JavaScript resources in Aura components? Choose 3 answers
Full set: 201 questionsThe tag is a specialized Aura component used to include external JavaScript and CSS libraries from static resources. The framework optimizes this process by ensuring that if multiple components request the same script, it is loaded only once. Scripts are loaded asynchronously and in parallel to improve performance. To manage dependencies where one script relies on another, developers can specify the order of scripts in the scripts attribute and use the afterScriptsLoaded attribute to execute code only after all specified scripts have been successfully loaded and are ready.
1. Salesforce Aura Components Developer Guide
Component:
For A (One-time loading): "If more than one component requires the same script
the script is loaded only one time."
For B (Loading in parallel): "Scripts are loaded asynchronously and in parallel."
For D (Specifying loading order): The afterScriptsLoaded attribute is described as "The client-side controller action to run after the scripts are loaded
" which enables dependency management and ordered execution.
For C & E (Incorrectness): The scripts attribute is defined as "A comma-separated list of static resources
" explicitly excluding Documents and external URLs as direct sources.
Source: Salesforce Developers
Aura Components Developer Guide
Component Library
.
2. Salesforce Aura Components Developer Guide
Using External JavaScript Libraries:
This section details the process of uploading third-party libraries as static resources and referencing them with . It reinforces that the standard and secure method is to use static resources
not direct external links.
Source: Salesforce Developers
Aura Components Developer Guide
"Using External JavaScript Libraries".
Keep practicing
Take the free CRT-450 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CRT-450 practice questions
- Question 2A developer created a child Lightning web component nested inside a parent Lightning web …
- Question 4A developer needs to make a custom Lightning Web Component available in the Salesforce Cl…
- Question 6Given the following Apex statement: Account myAccount = [SELECT Id, Name FROM Account); W…
- Question 8Which action causes a before trigger to fire by default for Accounts?
- Question 9Universal Containers (UC) wants to lower its shipping cost while making the shipping proc…
- Question 10A custom picklist field, Pool Preference ¢, exists on a custom object. The picklist conta…
