I am using the savelayout and loadlayout functions to save and load dock layout. This is working as expected.
The issue I'm having is where I should put the loadlayout code in the page lifecycle.
If I add the load function to the constructor as expected the layout is ignored and the default is used. If I add the load function to the contentrendered code the user see's the dock jerk from one layout to another.
Ideally I don't want the user to see the move from default to loaded layouts.
Can you explain how I achieve this please?