Usage of getMessage function without a second parameter - Catalog UI Policy scriptFalse
Impact area
Performance
Severity
Low
Affected element
Catalog UI Policy
Rule ID
SN-0402Impact
The usage of getMessage function without a second parameter causes the function call to be executed in synchronous way. It can lead to performance issues.
Remediation
Always use a second parameter for a callback function to make the function call asynchronous.
Time to fix
40 min
Code examples
Noncompliant code
getMessage("Your Message key");
Compliant code
getMessage("Your Message key", function(msg){ var otherMessage = msg; });