Medium This Hint is worth investigating further, and may warrant further attention depending on the type and quantity of URLs affected. Issue This Hint represents an error or problem that needs to be fixed.

Logs messages in the browser's console

This means that the URL in question contains browser console log messages.

Why is this important?

Console messages are good for debugging during development, and web developers log messages for 2 general reasons:

  • Making sure that code is executing in the right order.
  • Inspecting the values of variables at a certain moment in time.

However, they should be removed when in the live environment. Writing to the console can be costly, especially when logging large object variables.

The console object was introduced into Internet Explorer 10. All previous versions will error if the console object is called and fail to continue executing JavaScript, which could cause the HTML not to be rendered correctly.

What does the Hint check?

This Hint will trigger for any internal HTML URL that logs messages in the browser's console. If you open Chrome DevTools you can see logged console messages

Console Message

How do you resolve this issue?

All messages that log in the browser's console should be removed in a live environment.

Further Reading

Ready to try Sitebulb?
Start your free 14 day trial now

Start Free Trial