{"action":"opened","issue":{"url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/499","labels_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/499/comments","events_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/499/events","html_url":"https://github.com/defunkt/jquery-pjax/issues/499","id":60305418,"number":499,"title":"Google Search JavaScript Snippet not executing on navigation","user":{"login":"rachelnabors","id":236306,"avatar_url":"https://avatars.githubusercontent.com/u/236306?v=3","gravatar_id":"","url":"https://api.github.com/users/rachelnabors","html_url":"https://github.com/rachelnabors","followers_url":"https://api.github.com/users/rachelnabors/followers","following_url":"https://api.github.com/users/rachelnabors/following{/other_user}","gists_url":"https://api.github.com/users/rachelnabors/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelnabors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelnabors/subscriptions","organizations_url":"https://api.github.com/users/rachelnabors/orgs","repos_url":"https://api.github.com/users/rachelnabors/repos","events_url":"https://api.github.com/users/rachelnabors/events{/privacy}","received_events_url":"https://api.github.com/users/rachelnabors/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-09T06:53:17Z","updated_at":"2015-03-09T06:53:17Z","closed_at":null,"body":"On an archive page, I have this inline:\r\n\r\n```javascript\r\n    <script>\r\n      (function() {\r\n        var cx = '002428664232771263876:m1vbqio4y8u';\r\n        var gcse = document.createElement('script');\r\n        gcse.type = 'text/javascript';\r\n        gcse.async = true;\r\n        gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +\r\n            '//www.google.com/cse/cse.js?cx=' + cx;\r\n        var s = document.getElementsByTagName('script')[0];\r\n        s.parentNode.insertBefore(gcse, s);\r\n      })();\r\n    </script>\r\n    <gcse:search></gcse:search>\r\n```\r\n\r\nIt loads a search bar when you go to the archive's page directly via address bar, but if you navigate there via PJAX, no search bar."}}