diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-16 18:16:52 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-17 00:14:03 +0100 |
commit | ddba6e69dc7003c06dad19b994c63b5db711fc2e (patch) | |
tree | 7285fcfed64ea96526866117e1ac9ae17f650904 /web | |
parent | 0e497596fb9fc9fab0f1bd4e7b813e86dab174df (diff) |
[fixmystreet.com] Don't show things to Page Speed.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet.com/js.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet.com/js.js b/web/cobrands/fixmystreet.com/js.js index 9dbd11f2c..c54c543de 100644 --- a/web/cobrands/fixmystreet.com/js.js +++ b/web/cobrands/fixmystreet.com/js.js @@ -11,7 +11,7 @@ $(function(){ $.cookie('has_seen_country_message', 1, {expires: 365, path: '/'}); }); - if ( $('body.frontpage').length ) { + if ( $('body.frontpage').length && -1 == navigator.userAgent.indexOf('Google Page Speed')) { if (!$.cookie('has_seen_country_message')) { $.ajax({ url: 'https://gaze.mysociety.org/gaze-rest?f=get_country_from_ip', |