Wednesday, February 1, 2012

Tab Performance - CRM 4.0 vs CRM 2011

Tabs in CRM 4.0 are more like your traditional tabs you see on most web sites.


The nice thing about these style of tabs in CRM 4.0 are that only the content in the selected tab loads when the form loads.  This saves time on the initial hit and it won't load custom pages on other tabs until those tabs are selected.

On the other hand in CRM 2011 the tabs are vertical instead of horizontal.


The issue with vertical tabs is that by default everything loads initially when the form loads.  This includes all Silverlight resources that are on the form.  Also if you have Javascript that hides and shows fields on the form then potentially you could see the form jump around onload.  

In CRM 2011 we can easily get the same performance advantages of CRM 4.0 tabs.  To do this just simply uncheck the tab setting "Expand this tab by default".


By not expanding the tab by default, Silverlight won't load until the tab is clicked so we can get the "on demand" loading like CRM 4.0.  Also if we have Javascript hiding/showing fields on tabs other than the main one then we won't see the form jumping around on those tabs that are collapsed onload.

Hope this helps!

1 comment: