SIdekick load event | Community
Skip to main content
trench999
Level 4
October 16, 2015
Solved

SIdekick load event

  • October 16, 2015
  • 2 replies
  • 733 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

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

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

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

trench999
trench999Author
Level 4
October 16, 2015

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.