UI policies/Client scripts too slow

vibee
Kilo Expert

Hi,

I am trying to use UI polices or client scripts to hide values on a catalog order guide. But when I go to the pages, and catalog items, it lags when the page loads, and I can see the values briefly before they hide. Is there a way to hide the items without causing this slowdown in loading the page? I don't want users to get confused when they see the fields before it hides, can I speed this up somehow so that page loads without anyone seeing the values before the UI policies/client scripts kick in? Same issue happens on the catalog order page as well.

12 REPLIES 12

Umar M
ServiceNow Employee
ServiceNow Employee

Do you have many UI Policies or Client scripts that run when the form loads/load at the same order?



If so you can perhaps try to lower the order value of the ui policies that hide your fields to run before some of the other ones.


I have tried that. but it still is slow in loading the UI policies.



I also have 3 client scripts running on the same field. Maybe that is the issue?



They are for a list collector variable, and I am using 3 scripts to



filter the results in the list collector


change the headers of the list collector


and resize the width of it


Umar M
ServiceNow Employee
ServiceNow Employee

Have you tried disabling those temporarily to see if you still have the slow loading issue?


Yes, and it seems the issue is better but not fully gone. Is there a way to set the page from not showing until all the items and policies have been rendered?