sidekick taking time to load | Community
Skip to main content
varuns46785756
Level 5
October 16, 2015
Solved

sidekick taking time to load

  • October 16, 2015
  • 2 replies
  • 860 views

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,

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 PaulMcMahon

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. 

2 replies

PaulMcMahonAccepted solution
Level 8
October 16, 2015

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. 

smacdonald2008
Level 10
October 16, 2015

How much time is it taking to load?