loading JS

Avatar

Avatar

manikanthar1295

Avatar

manikanthar1295

manikanthar1295

31-03-2019

Hi Team,

How i can load the JS for only Dialog and not for entire page.

Regards

Manikantha R

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

31-03-2019

Hi,

Yes, you can by using extraClientLibs property.

To add this extra clientlibs specific to your component dialog, add extraClientlibs property to the cq:dialog of your component.

extraClientlibs(String)= clientlibs categories

Keep Calm and Code It.: extraClientlibs in AEM

Answers (1)

Answers (1)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

31-03-2019

Excellent response Arun!