Why it matters
An error logged while the page loads usually means a script stopped halfway: a menu that does not open, a form that does not submit, an analytics tag that records nothing. Visitors never see the message, only the broken behaviour.
How to fix it
Open the browser console on the page and fix the first error listed; later ones are often caused by it. A failing third-party tag can be removed or loaded with async.