Does the warning messages on code prevent the code from running? | Community
Skip to main content
December 20, 2021
Solved

Does the warning messages on code prevent the code from running?

  • December 20, 2021
  • 2 replies
  • 798 views

Hi,

I have a third  party pixel code which when I place into the editor, shows warnings. 

 

Does the warnings prevent the code from running?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Alexis_Cazes_

If you have reviewed the content of the third party code and vetted that it is secure then there should be no issues.

 

I have seen instances where Adobe Analytics plugins through the same warnings.

I usually use Visual Studio Code when I deploy custom code. Any issues with the code should be flagged in your code editor.

 

Also make sure when you test your build that no errors is triggered in the developer console. 

 

Also place you code inside try/catch to make sure that if it fails, it does not impact your platform

2 replies

yuhuisg
Community Advisor
Community Advisor
December 21, 2021

Warnings generally won't prevent your code from running. However, some causes of warnings may trip older browsers up, e.g. IE.

Your best bet is to resolve those warnings so you end up with good, clean and acceptable code.

Alexis_Cazes_
Alexis_Cazes_Accepted solution
December 24, 2021

If you have reviewed the content of the third party code and vetted that it is secure then there should be no issues.

 

I have seen instances where Adobe Analytics plugins through the same warnings.

I usually use Visual Studio Code when I deploy custom code. Any issues with the code should be flagged in your code editor.

 

Also make sure when you test your build that no errors is triggered in the developer console. 

 

Also place you code inside try/catch to make sure that if it fails, it does not impact your platform