내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
해결됨

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 ?

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
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

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
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.