# HS loads js src twice, causing error due to duplicate values

**URL:** <https://community.hubspot.com/t/hs-loads-js-src-twice-causing-error-due-to-duplicate-values/7775>\
**Category:** CMS Development\
**Created:** [February 12, 2018, 6:18pm UTC](https://community.hubspot.com/t/hs-loads-js-src-twice-causing-error-due-to-duplicate-values/7775 "2018-02-12T18:18:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josephLayden](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josephlayden/32/68653_2.png) [@josephLayden](https://community.hubspot.com/u/josephLayden)\
**Post date:** [February 12, 2018, 6:18pm UTC](https://community.hubspot.com/t/hs-loads-js-src-twice-causing-error-due-to-duplicate-values/7775/1 "2018-02-12T18:18:37Z")

</div>

I am adding script to the Content Settings Blog page. Style in the header, script in the footer. No other template or page has the script or style. Script loads twice at the end of the body, causing error “multiple babel polyfill”

 ![Screen Shot 2018-02-12 at 12.17.45 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/6/6fa9ad84092acd57257d1621109adaaed6dbc888.png)

---

<div class="post-metadata">

**Author:** ![roisinkirby](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@roisinkirby](https://community.hubspot.com/u/roisinkirby)\
**Post date:** [March 8, 2018, 1:18pm UTC](https://community.hubspot.com/t/hs-loads-js-src-twice-causing-error-due-to-duplicate-values/7775/2 "2018-03-08T13:18:52Z")

</div>

Hey @josephLayden are you still experiencing this error? I would reccommend calling into HubSPot Support to see if they can reproduce and troubleshoot with you.

---

<div class="post-metadata">

**Author:** ![josephLayden](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josephlayden/32/68653_2.png) [@josephLayden](https://community.hubspot.com/u/josephLayden)\
**Post date:** [March 8, 2018, 2:24pm UTC](https://community.hubspot.com/t/hs-loads-js-src-twice-causing-error-due-to-duplicate-values/7775/3 "2018-03-08T14:24:33Z")

</div>

@roisinkirby I moved all of the file calls to the template level and no longer receive the error. I did contact HubSpot however my timeline was limited. Thanks!
