3

So here is my problem. I've added a VisualForce page to an object as a section in the page layout. The VisualForce page contains the apex:details tag that points to another object. This means its essentially loading two pages. How can I make the performance of the main object's layout fasteer.

It seems like the the salesforce page waits for the VisualForce page to load before its done loading unlike other iframes behavior on the web. Is my assumption correct?

If it is, how can I add the apex:detail without waiting for it to load before the main page loads?

1 Answer 1

1

You could try optimizing your page, reducing query sizes and amounts, as well as the data on the page and the controller, or having it be hidden via the rendered attribute, and then calling a method on pageload that would render the detail veiw. Just some ideas, without exact code its a little hard to try to pin down why a page would be loading slowly.

5
  • my vf has no apex code, only have a component that includes the apex:detail
    – Oakage
    Jul 18, 2014 at 20:05
  • So, it looks something like <apex:page> <c:my_comp /> <apex:detail ... /> </apex:page> ?? Jul 18, 2014 at 20:29
  • 1
    Or is it a page set as a layout, with component that contains the detail? Jul 18, 2014 at 20:35
  • its the component that contains the detail
    – Oakage
    Jul 18, 2014 at 21:17
  • I'd try to figure out a way to have that flagged as rendered="false", when loading the page, and once loaded (via page load or something similar), set the render attribute to true, and then rerender that section of the page, but not the rest. If its low enough on the page, the users probably wont even notice that it was delayed when loading. Jul 21, 2014 at 18:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .