<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Content Settings renders script tag twice causing duplicate JS error in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/178622#M4751</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13987"&gt;@josephLayden&lt;/a&gt;&amp;nbsp;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?&lt;/P&gt;</description>
    <pubDate>Sat, 17 Feb 2018 21:44:54 GMT</pubDate>
    <dc:creator>SaraLynnn1</dc:creator>
    <dc:date>2018-02-17T21:44:54Z</dc:date>
    <item>
      <title>Content Settings renders script tag twice causing duplicate JS error</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/177870#M4691</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-19 at 8.34.36 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/7926i2F50E45377A6E5C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-02-19 at 8.34.36 AM.png" alt="Screen Shot 2018-02-19 at 8.34.36 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-12 at 12.17.45 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/7812iCC1A263CF5137A70/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-02-12 at 12.17.45 PM.png" alt="Screen Shot 2018-02-12 at 12.17.45 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 14:35:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/177870#M4691</guid>
      <dc:creator>josephLayden</dc:creator>
      <dc:date>2018-02-19T14:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Content Settings renders script tag twice causing duplicate JS error</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/178622#M4751</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13987"&gt;@josephLayden&lt;/a&gt;&amp;nbsp;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?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 21:44:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/178622#M4751</guid>
      <dc:creator>SaraLynnn1</dc:creator>
      <dc:date>2018-02-17T21:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Content Settings renders script tag twice causing duplicate JS error</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/178682#M4757</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-19 at 8.28.24 AM.png" style="width: 811px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/7925iAF1F0EDEC492F6BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-02-19 at 8.28.24 AM.png" alt="Screen Shot 2018-02-19 at 8.28.24 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 14:29:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/178682#M4757</guid>
      <dc:creator>josephLayden</dc:creator>
      <dc:date>2018-02-19T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Content Settings renders script tag twice causing duplicate JS error</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/178683#M4758</link>
      <description>&lt;P&gt;Its not visible in view but there are two.&amp;nbsp; As I was trying multiple combinations of files, app.js and app.min.js are the same just one not minified&amp;nbsp;so&amp;nbsp; control + f&amp;nbsp;shows&amp;nbsp;1 of 3 now.&amp;nbsp; It is the only script included other than hubspot and jquery.&amp;nbsp; 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.&amp;nbsp; 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.&amp;nbsp; There are no errors locally on the script.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 14:37:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/178683#M4758</guid>
      <dc:creator>josephLayden</dc:creator>
      <dc:date>2018-02-19T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Content Settings renders script tag twice causing duplicate JS error</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/178994#M4801</link>
      <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did find a post that seems like it might be related to the issue you are having:&amp;nbsp;&lt;A href="https://integrate.hubspot.com/t/uglified-javascript-throwing-errors-only-in-hubspot/6675/11" target="_blank"&gt;https://integrate.hubspot.com/t/uglified-javascript-throwing-errors-only-in-hubspot/6675/11&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when I visit the page you reference in your screenshot (&lt;A href="http://2942250.hs-sites.com/landing-page" target="_blank"&gt;http://2942250.hs-sites.com/landing-page&lt;/A&gt;), I do not get the error you describe. Try logging out of your account and see if it still appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly, check out this article on adding JS files to your templates (or sitewide). It appears you may have not referenced the file correctly in the content settings header/footer HTML:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/design-manager-user-guide-v2/how-to-add-a-javascript-file-to-hubspot" target="_blank"&gt;https://knowledge.hubspot.com/design-manager-user-guide-v2/how-to-add-a-javascript-file-to-hubspot&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that helps or if you have more details on what your overall goal is for adding this script to your site.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 23:59:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Content-Settings-renders-script-tag-twice-causing-duplicate-JS/m-p/178994#M4801</guid>
      <dc:creator>SaraLynnn1</dc:creator>
      <dc:date>2018-02-20T23:59:27Z</dc:date>
    </item>
  </channel>
</rss>

