# mtc.js gets called twice and is also taking time to load

**URL:** <https://forum.mautic.org/t/mtc-js-gets-called-twice-and-is-also-taking-time-to-load/7392>\
**Category:** Product Support\
**Created:** [February 6, 2017, 10:10am UTC](https://forum.mautic.org/t/mtc-js-gets-called-twice-and-is-also-taking-time-to-load/7392 "2017-02-06T10:10:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amevburman](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@amevburman](https://forum.mautic.org/u/amevburman)\
**Post date:** [February 6, 2017, 10:10am UTC](https://forum.mautic.org/t/mtc-js-gets-called-twice-and-is-also-taking-time-to-load/7392/1 "2017-02-06T10:10:44Z")

</div>

Hi,  
  
I have implemented the mautic tracking code on my sub domain. The mtc.js get’s called twice and takes collectively over 5 seconds (for both calls) to respond. I have placed the JS snippet just before the tag. This is hampering my page speed.The given [URL](http://mycloud.ubiquitant.in/mautic_js_load_time1.JPG) has a screenshot of the dom responses. Has anyone faced a similar issue and what is the best way to handle this. The url of my sub domain is [http://mycloud.ubiquitant.in/](http://mycloud.ubiquitant.in/).

---

<div class="post-metadata">

**Author:** ![amevburman](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@amevburman](https://forum.mautic.org/u/amevburman)\
**Post date:** [February 6, 2017, 10:10am UTC](https://forum.mautic.org/t/mtc-js-gets-called-twice-and-is-also-taking-time-to-load/7392/2 "2017-02-06T10:10:44Z")

</div>

Hi,  
I have implemented the mautic tracking code on my sub domain. The mtc.js get’s called twice and takes collectively over 5 seconds (for both calls) to respond. I have placed the JS snippet just before the tag. This is hampering my page speed.The given [URL](http://mycloud.ubiquitant.in/mautic_js_load_time1.JPG) has a screenshot of the dom responses. Has anyone faced a similar issue and what is the best way to handle this. The url of my sub domain is [http://mycloud.ubiquitant.in/](http://mycloud.ubiquitant.in/).

---

<div class="post-metadata">

**Author:** ![eplaku](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/eplaku/32/49_2.png) [@eplaku](https://forum.mautic.org/u/eplaku)\
**Post date:** [April 16, 2017, 8:39pm UTC](https://forum.mautic.org/t/mtc-js-gets-called-twice-and-is-also-taking-time-to-load/7392/3 "2017-04-16T20:39:45Z")

</div>

Is this the same issue for self hosted versions?

---

<div class="post-metadata">

**Author:** ![cdevogt](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@cdevogt](https://forum.mautic.org/u/cdevogt)\
**Post date:** [April 18, 2017, 7:06am UTC](https://forum.mautic.org/t/mtc-js-gets-called-twice-and-is-also-taking-time-to-load/7392/4 "2017-04-18T07:06:15Z")

</div>

No, this only applies to the SAAS version
