ExamGecko
Question list
Search
Search

Related questions











Question 23 - AD0-E134 discussion

Report
Export

In a non-optimized website, the final HTML generated for a typical page by publish instance includes a relatively large number of <script> elements that refer to other script files loaded from AEM environment. The developer wants to minimize these network calls by combining all required client library code into a single file to reduce the number of back-and-forth requests on page load.

Which step should a developer take to solve this issue?

A.
Embed the required libraries into an app-specific client library using the allowProxy property of the cq:Clientl_ibraryFolder node
Answers
A.
Embed the required libraries into an app-specific client library using the allowProxy property of the cq:Clientl_ibraryFolder node
B.
Add the categories property of the cq:Clientl_ibraryFolder node into an app-specific client library folder
Answers
B.
Add the categories property of the cq:Clientl_ibraryFolder node into an app-specific client library folder
C.
Embed the required libraries into an app-specific client library using the dependencies property of the cq:Clientl_ibraryFolder node
Answers
C.
Embed the required libraries into an app-specific client library using the dependencies property of the cq:Clientl_ibraryFolder node
D.
Embed the required libraries into an app-specific client library using the embed property of the cq:ClientLibraryFolder node
Answers
D.
Embed the required libraries into an app-specific client library using the embed property of the cq:ClientLibraryFolder node
Suggested answer: C

Explanation:

The embed property of the cq:ClientLibraryFolder node allows embedding code from a client library into another client library. At runtime, the generated JS and CSS files of the embedding library include the code of the embedded library. This reduces the number of network calls and improves performance. Embedding code is useful for providing access to libraries that are stored in secured areas of the repository. Reference: https://experienceleague.adobe.com/docs/experience-managercloud- service/content/implementing/developing/full-stack/clientlibs.html?lang=en#embed

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/embed-propertyin- client-libs/m-p/426858

asked 02/10/2024
Ali S Zahedi
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first