Content Settings renders script tag twice causing duplicate JS error
解決
Maybe I'm confused as to what you are trying to accomplish by adding the script to the content settings. Is there an external app you are trying to call to your template? Also, your screenshot shows that you added it to the BLOG header HTML in content settings...but the page you reference is a landing page?
Without knowing more about what you are trying to accomplish by adding the app.js and app.css files via content settings, it's hard to determine what's going on.
Also, when I visit the page you reference in your screenshot (http://2942250.hs-sites.com/landing-page), I do not get the error you describe. Try logging out of your account and see if it still appears.
Content Settings renders script tag twice causing duplicate JS error
解決
@josephLayden Can you post a screenshot of the error you are seeing? And clarify exactly which script is being rendered twice? The line highlighted in orange does not seem to be rendering elsewhere?
Content Settings renders script tag twice causing duplicate JS error
解決
Its not visible in view but there are two. As I was trying multiple combinations of files, app.js and app.min.js are the same just one not minified so control + f shows 1 of 3 now. It is the only script included other than hubspot and jquery. It prints twice when I use the content settings to save the script, but if I save it in the head of the template in design manager it prints once and i do not get an error. The babel polyfill error only occurs when the script is set in the content settings head or footer area, and is resolved by not loading the script twice. There are no errors locally on the script.
Content Settings renders script tag twice causing duplicate JS error
解決
Maybe I'm confused as to what you are trying to accomplish by adding the script to the content settings. Is there an external app you are trying to call to your template? Also, your screenshot shows that you added it to the BLOG header HTML in content settings...but the page you reference is a landing page?
Without knowing more about what you are trying to accomplish by adding the app.js and app.css files via content settings, it's hard to determine what's going on.
Also, when I visit the page you reference in your screenshot (http://2942250.hs-sites.com/landing-page), I do not get the error you describe. Try logging out of your account and see if it still appears.