Slow load performance of Chatter page include

  • 1
  • Question
  • Updated 5 years ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: Old Questions

I'm looking to add a Chatter feed into a popup spawned from a row action. I used the page include technique Rob Hatch detailed here, and it functions just fine, but the included page is taking a long time to load, in fact around 10-15 seconds each time. This is even the case when returning to a previously loaded row. See here:

https://www.dropbox.com/s/xr73gz3qtcz6fvu/PageIncludePerformance.mp4

I'd love to know why this is, because the functionality is otherwise perfect and ready to go. Any ideas?
Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,768 Points 5k badge 2x thumb
  • Tantalisingly close to something great ...

Posted 5 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 53,702 Points 50k badge 2x thumb
Can you try comparing the performance to the Template / iFrame approach? what that would look like is adding a Template to the popup, instead of the Page Include, with this body:
<iframe src="/apex/skuid__Social?id={{{Id}}}" seamless="seamless" width="100%" height="600px" frameborder=0/>


Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,768 Points 5k badge 2x thumb
Hey Zach ... just tried that and the performance is way better, around 1 second every time. Weird, eh?

The fixed height nature of the iframe isn't nice, but it's workable for now.
Photo of David Ross

David Ross

  • 562 Points 500 badge 2x thumb
Glenn, for height can't you use a property of "auto" ? I believe, but I may be wrong.

This conversation is no longer open for comments or replies.