AEM Personalization with contexthub

mohitg4140898 16-12-2019

I have created one carousel component which is working fine when targeting is not applied but after applying targeting, its javascript is not loading or working fine. carousel's slider is not working.

 

Can anyone suggest me something?

AEM contexthub javascript Personalization

Mark Solution

Are these answers useful?
Help other community members by marking useful answers as accepted.

Accepted Solutions (0)

Answers (2)

Answers (2)

Dipti_Chauhan 17-12-2019

Hi,

   You need to again initialize you JS on context Hub Teaser loaded event.

e.g

window.ContextHub.eventing.on(window.ContextHub.Constants.EVENT_TEASER_LOADED, function () {

//INITIALIZE HERE

}

 

Thanks

Dipti Chauhan