Get Section load time on click Collapsible bar
We have some sections checked "Display Header and Title" load type Collapsible and Expand on Load is Unchecked.
We need to get the load time of section on click of header icon.
On click its calling expandHeader function and this function is in pega_ui_docwrappers.js(FINAL rule) file.So for testing I done private edit and able to get section load time by adding some lines of code.
As it is final rule so we cant overide or save as so is there any other way to acheive this.
function expandHeader(expandElement, event, container, bFromKeyboard){
var t0 = performance.now();//added code
pega.u.d.expandHeader(expandElement, event, container, bFromKeyboard);
var t1 = performance.now();//added code
var bool=t1-t0;//added code
alert(bool);//added code
}