{"action":"created","issue":{"url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/95","repository_url":"https://api.github.com/repos/borismus/webvr-polyfill","labels_url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/95/comments","events_url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/95/events","html_url":"https://github.com/borismus/webvr-polyfill/issues/95","id":150011730,"number":95,"title":"Dynamically enabling/disabling the polyfill","user":{"login":"sandromartis","id":2760134,"avatar_url":"https://avatars.githubusercontent.com/u/2760134?v=3","gravatar_id":"","url":"https://api.github.com/users/sandromartis","html_url":"https://github.com/sandromartis","followers_url":"https://api.github.com/users/sandromartis/followers","following_url":"https://api.github.com/users/sandromartis/following{/other_user}","gists_url":"https://api.github.com/users/sandromartis/gists{/gist_id}","starred_url":"https://api.github.com/users/sandromartis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandromartis/subscriptions","organizations_url":"https://api.github.com/users/sandromartis/orgs","repos_url":"https://api.github.com/users/sandromartis/repos","events_url":"https://api.github.com/users/sandromartis/events{/privacy}","received_events_url":"https://api.github.com/users/sandromartis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-21T08:57:48Z","updated_at":"2016-04-21T09:43:11Z","closed_at":null,"body":"Hey there!\r\n\r\nIs there a way to dynamically enable or disable the polyfill?\r\n\r\nI don't like the polyfill to be active as soon as the script gets added to the HTML page.\r\n\r\nFor example, it immediately starts overwriting my controls when in mobile mode.\r\nI would like to keep a regular multitouch experience when the user navigates the scene and only switch to VR mode when the user presses a button.\r\n\r\nDid I miss something here?\r\n\r\nHow can I accomplish this with the polyfill?\r\n\r\nThanks,\r\nSandro"},"comment":{"url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/comments/212833739","html_url":"https://github.com/borismus/webvr-polyfill/issues/95#issuecomment-212833739","issue_url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/95","id":212833739,"user":{"login":"cvan","id":203725,"avatar_url":"https://avatars.githubusercontent.com/u/203725?v=3","gravatar_id":"","url":"https://api.github.com/users/cvan","html_url":"https://github.com/cvan","followers_url":"https://api.github.com/users/cvan/followers","following_url":"https://api.github.com/users/cvan/following{/other_user}","gists_url":"https://api.github.com/users/cvan/gists{/gist_id}","starred_url":"https://api.github.com/users/cvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvan/subscriptions","organizations_url":"https://api.github.com/users/cvan/orgs","repos_url":"https://api.github.com/users/cvan/repos","events_url":"https://api.github.com/users/cvan/events{/privacy}","received_events_url":"https://api.github.com/users/cvan/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T09:43:11Z","updated_at":"2016-04-21T09:43:11Z","body":"Yes, there's an option to do this. Set `window.WebVRConfig = {DEFER_INITIALIZATION: true};`.\r\n\r\nSee the [configuration docs](https://github.com/borismus/webvr-polyfill#configuration).\r\n"}}