(AEM 5.6.0) Teaser Performance Problems on webpage scroll | Community
Skip to main content
Level 2
October 16, 2015
Solved

(AEM 5.6.0) Teaser Performance Problems on webpage scroll

  • October 16, 2015
  • 5 replies
  • 1902 views

I've been building a CQ page with a few teasers on it and I noticed that there seems to be a dramatic and noticeable slowdown whenever I scroll the page. I then tried it out on Geometrixx and I'm seeing the same thing. Chrome's javascript profiler revealed that scrolling around the page used up to 17% of my CPU is being used to process "CQ_Analytics.SegmentMgr.resolve", which appears to be triggering whenever a teaser is scrolled into view.

This is really heinous, and it is happening on the Geometrixx site so I don't believe it's something I've done. Has anybody figured out how to fix this or optimize around it?

I've restarted Chrome since I suspected there might be a leak that was consuming resources. It did not seem to matter, and on Firefox the problems are even more severe, essentially hanging the webpage for a few seconds as you scroll. Again, it comes to the same calls to CQ_Analytics.SegmentMgr.resolve().

I'm seeing all this in preview mode on AEM 5.6.0.

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 joel_triemstra

It looks like we just unbound all "mousemove" events from the $CQ copy of jQuery.

5 replies

Level 2
October 16, 2015

This sounds like something we saw in v5.4. There's JS in the segmentation framework that tracks your mouse position for segmentation purposes. I can't remember for sure, but I think we ended up using our own JS to remove the event listener for mouse move that CQ had created.

Sham_HC
Level 10
October 16, 2015

I have never come across this. Can you file daycare with details

outcoxedAuthor
Level 2
October 16, 2015

That sounds like what might be happening! Can you think of a good way to find these listeners so I can remove them? I'm not sure how I'd do that.

outcoxedAuthor
Level 2
October 16, 2015

Sham HC wrote...

I have never come across this. Can you file daycare with details

 

You can just look at the Geometrixx site to see it happening.

joel_triemstraAccepted solution
Level 2
October 16, 2015

It looks like we just unbound all "mousemove" events from the $CQ copy of jQuery.