Issue with clientlib load order

Avatar

Avatar

Adilmo

Avatar

Adilmo

Adilmo

09-03-2021

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. 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Adilmo

Avatar

Adilmo

Adilmo

12-03-2021

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

Answers (1)

Answers (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

879

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

879
Arun_Patidar
MVP

09-03-2021

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

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