Expand my Community achievements bar.

SOLVED

Q. related to cq:ClientLibraryFolder node

Avatar

Level 7

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:ClientLibraryFolder node

B. Add the categories property of the cq:ClientLibraryFoider 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:ClientLibraryFolder node

D. Embed the required libraries into an app-specific client library using the embed property of the cq:ClientLibraryFolder node

 

Ans should be D ?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hello @JakeCham 

 

Yes the correct Ans is,

 D. Embed the required libraries into an app-specific client library using the embed property of the cq:ClientLibraryFolder node

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

Hello @JakeCham 

 

Yes the correct Ans is,

 D. Embed the required libraries into an app-specific client library using the embed property of the cq:ClientLibraryFolder node

Avatar

Community Advisor

Hi @JakeCham 
The correct answer is : C
c.Embed the required libraries into an app-specific client library using the dependencies property of the cq:ClientLibraryFolder node

The dependencies property in the cq:ClientLibraryFolder node allows you to specify dependencies on other client libraries. By using this property, you can ensure that the required libraries are included in the final client library, combining them into a single file. This helps in reducing the number of network calls and improving the performance of the website.


Thanks.