Issue with clientlib load order | Community
Skip to main content
Adilmo
Level 4
Mar 9, 2021 10:13 AM UTC
Solved

Issue with clientlib load order

Hi All, 

 

We have an issue where clientlibs included directly included in the page (using data-sly-call overriden in customheader and customfooter fragments) is loading after the clientlib included through page policy. This is for XF page. Is there a way We can include the page policy after the statically included base clientlibs. 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Adilmo
AdilmoAccepted solution
Level 4
Mar 12, 2021 3:45 PM UTC

Xfpage points to a different page rendering component. I adjusted head.Html to reorder inclusion of header css and it worked

4 replies

Adilmo
AdilmoAuthorAccepted solution
Level 4
Mar 12, 2021 3:45 PM UTC

Xfpage points to a different page rendering component. I adjusted head.Html to reorder inclusion of header css and it worked

Translate
kautuk_sahni
Employee
Mar 15, 2021 10:44 AM UTC
Thank you for sharing the solution with AEM community
Translate
Kautuk Sahni
arunpatidar
New Participant
Mar 9, 2021 7:12 PM UTC

Hi, Use defer to load policy clientlibs after the DOM load.

https://javascript.info/script-async-defer#defer

Translate
Arun Patidar
Adilmo
AdilmoAuthor
Level 4
Mar 10, 2021 8:57 AM UTC
Can enforce the order of clientlib loading .... from page component ??
Translate