Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

In AEM, can I prevent Sidekick from showing? | AEM Community Blog Seeding

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,375 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,375 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

26-05-2020

BlogImage.jpg

In AEM, can I prevent Sidekick from showing? by howtoaem Blog

Abstract

Under certain circumstances, I want to prevent the Sidekick from being displayed on a page. I tried some things:

Removing the init.jsp include. This works, but it also prevents certain CQ javascript libraries from being loaded, and I need these libraries.
Adding a jquery onload event to hide the sidekick.

$(function() {CQ.WCM.getSidekick().hide()});
This doesn't work because the sidekick isn't loaded yet.

Adding a jquery onload event with a timeout.

$(function() {
setTimeout(function() {
CQ.WCM.getSidekick().hide();
}, 1)
});
But this is not reliable. Setting the timeout too low will have a high chance of failure. Setting it too high will cause it to appear then disappear, which is unacceptable.

Read Full Blog

In AEM, can I prevent Sidekick from showing?

Q&A

Please use this thread to ask the related questions.

AEM AEMEBlogSeeding Experience Manager