Catalog Client Scripts Without Function

< 1 min read

Impact Area

Scalability

Severity

Medium

Affected Element

Catalog Client Scripts

Rule number #

SN-0147

Impact #

Client scripts without a function cause issues with variable scope. When code is not enclosed in a function, variables and other objects are available and shared to all other client-side scripts.

Remediation #

Ensure that all code is wrapped in a function.

Time to fix #

15 min

Updated on March 21, 2025
Was it helpful ?