Avoid Global UI Scripts

< 1 min read

Impact Area

Performance

Severity

Low

Affected Element

UI Scripts

Rule ID #

SN-0176

Impact #

Global UI scripts are loaded on every single page/form in ServiceNow even if they code within them is not called.

Remediation #

Make the UI Script non-global, and include the UI Script on the appropriate page by referencing the script as needed.

Time to fix #

10 min

Updated on March 21, 2025
Was it helpful ?