piwik/piwik — pull request #6791 by fredli74 (2014-12-03 11:45:53+00:00)
Title: Update piwik.js

Tried implementing sendBeacon on the client side, but it seems the server side requires a different content-type? Remove "return false" from 2421 for testing.

In my experience the 500ms wait is arbitrary guesswork and is not enough for slow connections from distant places. I increased this in my own implementation to 5000ms and only use it as a fallback timeout so that the navigation do not get stuck forever.

Also the image.onready now requires image.onerror as well since piwik does not return a valid image anymore (return code 204)