mozilla/kuma — pull request #2754 by darkwing (2014-09-18 18:57:39+00:00)
Title: Fix bug 1069108 - If GA is loaded but blocked, ensure users get to external links

https://bugzilla.mozilla.org/show_bug.cgi?id=1069108

So when you install Ghostery and disallow Google Analytics, Ghostery shims a basic `ga` function which tricks us into thinking GA is there and will work. Huh.

Anywhoo, this addition does a basic Timeout -> window.location to ensure the user gets there in the case of Ghostery or likewise plugins. It's important to note that this bails out on GA, so if for some reason GA is slow, we don't wait the full time anymore.

The `1200` wait is arbitrary so when spot-checking, get a feel for how long you wait and we can decide if it's too slow or not.

To spot-check:

[ ] - Install Ghostery (https://www.ghostery.com/en/)
[ ] - Bring up the homepage.
[ ] - In the Ghostery panel, disalllow Analytics and refresh the page
[ ] - Click the "read more at hacks.mozilla.org"
[ ] - ....wait 1200 milliseconds...
[ ] - Be taken away to Hacks finally