Client Scripts with the console.log debugging method

Impact area

Performance

Severity

Medium

Affected element

Client Scripts

Rule ID

SN-0017

Impact

The client-side function console.log could cause errors in certain browser versions

Remediation

Replace console.log() calls with jslog. The benefits of jslog are that you have to open the JavaScript Debugger Window to view the output, it is compatible with all browsers, and can be left in production since only administrators can open the window.

Time to fix

5 min




Last modified on Dec 12, 2022