Personalized Content takes too much time to load
Hi,
I have noticed that any personalized content takes time to load (AEM 6.1). I believe this is because there is a front-end JS logic where segments are resolved first and then the campaign is loaded based on resolved segment and this process takes time.
But there is huge delay even before the ClientContextMgr registers (CQ_Analytics.JSONPStore.registerNewInstance) any store and takes same time from there if we have more than one store related to the segments which are tied to the campaign.
This part of code from "/libs/cq/personalization/clientlib/kernel/source/shared/clientcontextmanager.js" where it initializes the timer between stores. This is what seems to be causing the initial delay.
/** * Number of milliseconds between the last store gets registered and the event storesinitialize * gets fired. * @final * @private */ CQ_Analytics.ClientContextMgr.prototype.INITIALIZATION_EVENT_TIMER = 1000;
My questions are,
- Why is this 1 sec delay mandatory between each store?
- We are planning to overlay this code to reduce the timer. Do you see any complications doing it? (Considering we may only end up using 1 or 2 stores)
Thanks in Advance.
Phani J