Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

SIdekick load event

Avatar

Level 4

We are trying to use jQuery functions to adjust the DOM of the sidekick.  Document Ready is far to early so what event should we be using to trigger our JS?

------

BTW:  The forum is again unusably slow (15 sec to open the page completely!!!)  When will this be resolved?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Not sure of your use case try overlaying [1] and modify init.jsp to add a callback method to CQ.WCM.launchSidekick. launchSidekick takes a third parameter callback function to call after sidekick is launched

[1]  /libs/wcm/core/components/init

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Not sure of your use case try overlaying [1] and modify init.jsp to add a callback method to CQ.WCM.launchSidekick. launchSidekick takes a third parameter callback function to call after sidekick is launched

[1]  /libs/wcm/core/components/init

Avatar

Level 4

We are adding a clientlib with the right category that overlays some CSS to provide a more modern interface (colors, tab styling, icons, etc).  I'd like to throw some JS in the clientlib to inject some content and a couple of new items.  This should be pretty basic.