top of page

Avoid Use Global UI Script

Global UI scripts in ServiceNow are designed to load on every page within the instance. While they can provide functionality across various platforms, using them indiscriminately can lead to several issues. Primarily, these scripts may degrade performance as they load even on pages where they are not needed. Additionally, Global UI Scripts are not supported on mobile devices and can lead to unintended side effects due to their pervasive presence.


Resolution Steps:

  1. Evaluate the Necessity of the Global UI Script:

    • Review the script to determine if its functionality is essential on every page.

    • Assess which specific pages require the functionality provided by the script.

  2. Restrict Script Loading:

    • Remove the Global UI Script if it is found unnecessary for all pages.

    • Replace it with record specific scripts (client scripts) or use conditional scripting to limit execution to relevant pages.

  3. Test for Performance and Compatibility:

    • Ensure that any changes made do not affect the intended functionality.


By taking steps to avoid unnecessary global scripts and implementing more efficient scripting practices, you can enhance the performance and user experience of your ServiceNow environment.

For more detailed guidance on resolving this issue, please contact us at support@dt-advisory.ch.

bottom of page