Tracking code hangs page rendering


#1

Hello,

I searched a lot before posting this, but found no solution.
My problem is that when the piwik host is unreachable the page hangs for a long time.
For unreachable I mean that the connection does not get any packet back and timeouts.

To reproduce the issue I blocked piwik host with iptables on my client machine, making the packets to be dropped.

The problem does not happen if the piwik host replies with connection refused or other errors.

Is there any solution?

Thanks

Ps it may be that page renders fine but Other JavaScript is blocked


(Matthieu Aubry) #2

Hi there,

did you put the javascript code at the end of the page, just before /body tag? maybe this will work better and not block your other javascripts?


#3

Yes I put it at the end but I still have this issue.