QuestionQ40

VerifiedGiven a scenario, identify how to implement client-side development and front-end build tools

On a non-optimized website, the final HTML produced for a typical page by a publish instance contains a relatively large number of <script> elements that reference other script files loaded from the AEM environment. The developer wants to reduce these network calls by combining all necessary client library code into one file, thereby reducing the number of back-and-forth requests during page load.

Which action should a developer take to address this issue?

Explanation

The embed property on a cq:ClientLibraryFolder embeds the code of specified client libraries into the embedding library’s generated JavaScript or CSS output. In contrast, dependencies causes separate library files to be included, while allowProxy controls proxy access and categories identifies library categories.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!