Platform performance · LessonBy Sneha I, ServiceNow Trainer, 8 yrs · Published · ServiceNow · all levels
Client side performance
Make forms and portals load quickly: script audit, field count, related lists and browser diagnostics.
Quick answer
Make forms and portals load quickly: script audit, field count, related lists and browser diagnostics.
Key takeaways
- Measure with developer tools before optimising
- Synchronous server calls are the biggest single cause
- Trim fields and related lists on heavily used forms
- Every portal widget runs a server script per page load
Measure first
Open the browser developer tools and the ServiceNow field watcher, load the form and look at what takes the time. Guessing usually leads to optimising something that costs five milliseconds.
Usual suspects
Four patterns cause most slow forms.
- Synchronous GlideAjax or client side GlideRecord blocking render
- A form with sixty fields and eight related lists
- Onload scripts running for every user when they apply to one role
- Large attachments or images embedded in the form or portal page
Portal specifics
Widgets add their own cost. Keep server scripts narrow, avoid loading records you do not display, and remember that each widget on a page runs its own server script on every load.
Practice challenge
+0 XPStreak ×0
Question 1 of 2
What is the fastest way to find the slow part of a form?
Frequently asked questions
How many fields is too many?
If users scroll past fields they never fill in, the form is too long. Split rarely used fields into a collapsed section or a separate view.
Does the browser matter?
Yes, but not as much as bad scripts. Fix the platform side first, then check browser extensions in stubborn cases.