contexthub increasing overall page load time

Avatar

Avatar

sreenu539

Avatar

sreenu539

sreenu539

09-04-2018

We have recently enabled contexthub in our application.

Overall average time of page load increased between 1 to 2 seconds.

I analyzed requests before and after enabling context hub and following are the requests

Aksb.min.js

Contexthub.kernel.js

Contexthub.segment.js

Context hub.pagedata.json

Any ideas on how to reduce the page load times having context hub?

Replies

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

10-04-2018

Are you having some custom contexthub implementation? or default?

Avatar

Avatar

Abhishek_Dweved

Employee

Avatar

Abhishek_Dweved

Employee

Abhishek_Dweved
Employee

10-04-2018

ContextHub on page will load a few more js but the performance lag shouldn't be much visible. Could you please share some more information on this issue.

  • Are you trying with custom contexthub store and modules ? If yes can you try with existing stores /modules on we-retail as well ?
  • How many components you are targeting on the page ?
  • Are you facing issues on author or publish ?
  • Do you have dispatcher or caching implemented with your application ?

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

10-04-2018

WHat is the Server capability you are using. An Enterprise Server should load the few extra JS files without issue.

Avatar

Avatar

sreenu539

Avatar

sreenu539

sreenu539

10-04-2018

included contexthub with sly include tag. No custom code.

Avatar

Avatar

sreenu539

Avatar

sreenu539

sreenu539

10-04-2018

loading JS files is not a problem. Loading them degrading the page load time.  how to reduce context hub load time or make it not impact existing page load time?

gomez-contexthub.png

Avatar

Avatar

sreenu539

Avatar

sreenu539

sreenu539

10-04-2018

  • Are you trying with custom contexthub store and modules ? If yes can you try with existing stores /modules on we-retail as well ?

    No.

  • How many components you are targeting on the page ?

   Not targeting anything yet, simply including contexthub component with sly tag causing 1 and half second more page load time.

  • Are you facing issues on author or publish ?

   I did face issues with cart store and disabled that for now. (csrf, contexthub issue)

  • Do you have dispatcher or caching implemented with your application ?

  Yes.