Question

3
Replies
165
Views
SSrinivas Member since 2015 52 posts
Virtusa
Posted: 3 years ago
Last activity: 3 years 11 months ago
Closed
Solved

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

}

 

Low-Code App Development Data Integration Java and Activities User Interface
Moderation Team has archived post
Share this page LinkedIn