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

vibee, Were you able to give that a try? I'm thinking that using the LateLoadEvent may help instead of using the 'wait 100ms and try again'; especially if the UI policies are ordered and that one runs first, could be delaying the subsequent policies causing the lag running them that you're seeing.


rohantyagi
ServiceNow Employee
ServiceNow Employee

If you are on Helsinki release, try running item diagnostics. It will compare all your custom scripts against best practices and suggest modifications if required.



find_real_file.png


Hi,



We are on Fuji, so we don't have the diagnostic tool but that is good to know.



Unfortunately, I did not try any of the other suggestions by Bryan. My management has put this on hold for now, until some other key items are fixed up first.




But thank you all for the help