{"action":"created","issue":{"url":"https://api.github.com/repos/downshiftorg/prophoto-issues/issues/825","repository_url":"https://api.github.com/repos/downshiftorg/prophoto-issues","labels_url":"https://api.github.com/repos/downshiftorg/prophoto-issues/issues/825/labels{/name}","comments_url":"https://api.github.com/repos/downshiftorg/prophoto-issues/issues/825/comments","events_url":"https://api.github.com/repos/downshiftorg/prophoto-issues/issues/825/events","html_url":"https://github.com/downshiftorg/prophoto-issues/issues/825","id":285818820,"number":825,"title":"Add a filter to remove Facebook include script conditionally","user":{"login":"postmastersteve","id":275742,"avatar_url":"https://avatars3.githubusercontent.com/u/275742?v=4","gravatar_id":"","url":"https://api.github.com/users/postmastersteve","html_url":"https://github.com/postmastersteve","followers_url":"https://api.github.com/users/postmastersteve/followers","following_url":"https://api.github.com/users/postmastersteve/following{/other_user}","gists_url":"https://api.github.com/users/postmastersteve/gists{/gist_id}","starred_url":"https://api.github.com/users/postmastersteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmastersteve/subscriptions","organizations_url":"https://api.github.com/users/postmastersteve/orgs","repos_url":"https://api.github.com/users/postmastersteve/repos","events_url":"https://api.github.com/users/postmastersteve/events{/privacy}","received_events_url":"https://api.github.com/users/postmastersteve/received_events","type":"User","site_admin":false},"labels":[{"id":273494370,"url":"https://api.github.com/repos/downshiftorg/prophoto-issues/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-03T21:46:05Z","updated_at":"2018-02-12T19:10:28Z","closed_at":null,"author_association":"NONE","body":"When a ProPhoto 6 site needs the Facebook `sdk.js` file, it should be included.\r\nBut when the page uses no Facebook features, we should not include the `sdk.js` file.\r\n\r\nRight now, it is included whether the site uses built-in Facebook features or not:\r\n\r\n`<script> \r\n(function(d, s, id) { \r\nvar js, fjs = d.getElementsByTagName(s)[0]; \r\nif (d.getElementById(id)) return; \r\njs = d.createElement(s); js.id = id; \r\njs.src = \"//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4\"; \r\nfjs.parentNode.insertBefore(js, fjs); \r\n}(document, 'script', 'facebook-jssdk')); \r\n</script>`"},"comment":{"url":"https://api.github.com/repos/downshiftorg/prophoto-issues/issues/comments/365029404","html_url":"https://github.com/downshiftorg/prophoto-issues/issues/825#issuecomment-365029404","issue_url":"https://api.github.com/repos/downshiftorg/prophoto-issues/issues/825","id":365029404,"user":{"login":"postmastersteve","id":275742,"avatar_url":"https://avatars3.githubusercontent.com/u/275742?v=4","gravatar_id":"","url":"https://api.github.com/users/postmastersteve","html_url":"https://github.com/postmastersteve","followers_url":"https://api.github.com/users/postmastersteve/followers","following_url":"https://api.github.com/users/postmastersteve/following{/other_user}","gists_url":"https://api.github.com/users/postmastersteve/gists{/gist_id}","starred_url":"https://api.github.com/users/postmastersteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmastersteve/subscriptions","organizations_url":"https://api.github.com/users/postmastersteve/orgs","repos_url":"https://api.github.com/users/postmastersteve/repos","events_url":"https://api.github.com/users/postmastersteve/events{/privacy}","received_events_url":"https://api.github.com/users/postmastersteve/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T19:10:28Z","updated_at":"2018-02-12T19:10:28Z","author_association":"NONE","body":"+1 Andrew Paules ticket 175648"}}
{"actor":{"display_login":"postmastersteve"}}