Expand my Community achievements bar.

Nomination window for the Adobe Community Advisor Program, Class of 2025, is now open!
SOLVED

sidekick taking time to load

Avatar

Level 5

I have a page with lots of html code.when I am open the page , sidekick taking too much time to load.

my sample code is:I have two jsp files.

body.jsp

<html>
<cd:include script="head.jsp"/> 

<cq:include script="content.jsp"/>
</html>

head.jsp: Side kick and all the css and js included in this file only

------------

<head>
<cq:include script="/libs/wcm/core/components/init/init.jsp"/>
 <!--Include all CSS and js file here -->
<head>

If I am going place sidekick in body.jsp, in that case sidekick loaded properly without taking too much time but my component edit option is not working.Please suggest

 

Regards,

1 Accepted Solution

Avatar

Correct answer by
Level 8

I believe init.jsp has to load in the HTML head to work properly. init.jsp does quite a bit more than loading side kick - it initializes all the component editing. There are any number of things that can cause sidekick to take too long to load, including:

  • Javascript errors within the page - if there is fatal error within the page it can cause problems for side kick. 
  • Too many components on a page - one of the things init does is trigger the process of dynamically adding to the DOM all the hooks for the authoring interface. If you have say thousands of components that could cause a delay in the loading of sidekick
  • Sidekick makes a couple of AJAX calls - if those are slow it can slow down rendering as well. 

I'd take a look at  your JavaScript error console in your browser and see if there are any obvious errors when you load init.jsp in the head. 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

I believe init.jsp has to load in the HTML head to work properly. init.jsp does quite a bit more than loading side kick - it initializes all the component editing. There are any number of things that can cause sidekick to take too long to load, including:

  • Javascript errors within the page - if there is fatal error within the page it can cause problems for side kick. 
  • Too many components on a page - one of the things init does is trigger the process of dynamically adding to the DOM all the hooks for the authoring interface. If you have say thousands of components that could cause a delay in the loading of sidekick
  • Sidekick makes a couple of AJAX calls - if those are slow it can slow down rendering as well. 

I'd take a look at  your JavaScript error console in your browser and see if there are any obvious errors when you load init.jsp in the head. 

Avatar

Level 10

How much time is it taking to load?