Munchkin code causing site to be unresponsive

Highlighted
Level 3

Munchkin code causing site to be unresponsive


I noticed I sometimes get a "net::ERR_CONNECTION_RESET" when our site tries to get the munchkin.js file causing the site to be unresponsive for several seconds.  I tried putting the munchkin code in both the head and at the end of the </body> but does not seem to make a difference.  Does anyone know why this could be happening?

Tags (1)
9 REPLIES 9
Highlighted
Level 10 - Community Moderator

Re: Munchkin code causing site to be unresponsive

URL, please.

Highlighted
Level 3

Re: Munchkin code causing site to be unresponsive

https://www.appneta.com

Thanks Sanford!  It does not happen all the time but enough to make it noticeable and annoying.

Highlighted

Re: Munchkin code causing site to be unresponsive

We're also seeing the same thing on our end, the behavior seen is super slow responses, we're taking the code out of our website & other properties for now. 

Highlighted
Level 10 - Community Moderator

Re: Munchkin code causing site to be unresponsive

Loading the library JS asynchronously doesn't affect load performance unless you're also using old-school onLoad listeners (which you shouldn't be).

Highlighted

Re: Munchkin code causing site to be unresponsive

Thanks Sanford! Having our web dev take a look. 

Highlighted
Level 1

Re: Munchkin code causing site to be unresponsive

Hi Sanford, 

We are using the async code detailed in your developers guide:

https://developers.marketo.com/javascript-api/lead-tracking/ 

There is a part that uses onload on line 20. Is that what you are referring to? 

Highlighted
Level 10 - Community Moderator

Re: Munchkin code causing site to be unresponsive

No, I mean if you're using window.onload in your own code.

Highlighted
Level 3

Re: Munchkin code causing site to be unresponsive

If anyone else was experiencing this issue, there was indeed an issue with the munchkin code server in the San Jose datacenter that was causing the error.  

Highlighted
Level 10 - Community Moderator

Re: Munchkin code causing site to be unresponsive

Obvs. not good, but if all assets are truly async (no accidental dependencies elsewhere in your code) a TCP reset wouldn't have side effects.