{"action":"created","issue":{"url":"https://api.github.com/repos/SC5/sc5-styleguide/issues/719","labels_url":"https://api.github.com/repos/SC5/sc5-styleguide/issues/719/labels{/name}","comments_url":"https://api.github.com/repos/SC5/sc5-styleguide/issues/719/comments","events_url":"https://api.github.com/repos/SC5/sc5-styleguide/issues/719/events","html_url":"https://github.com/SC5/sc5-styleguide/issues/719","id":96154019,"number":719,"title":"Using \"styleguide:onRendered\" is not executing","user":{"login":"ejwaibel","id":2830686,"avatar_url":"https://avatars.githubusercontent.com/u/2830686?v=3","gravatar_id":"","url":"https://api.github.com/users/ejwaibel","html_url":"https://github.com/ejwaibel","followers_url":"https://api.github.com/users/ejwaibel/followers","following_url":"https://api.github.com/users/ejwaibel/following{/other_user}","gists_url":"https://api.github.com/users/ejwaibel/gists{/gist_id}","starred_url":"https://api.github.com/users/ejwaibel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejwaibel/subscriptions","organizations_url":"https://api.github.com/users/ejwaibel/orgs","repos_url":"https://api.github.com/users/ejwaibel/repos","events_url":"https://api.github.com/users/ejwaibel/events{/privacy}","received_events_url":"https://api.github.com/users/ejwaibel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-20T20:35:55Z","updated_at":"2015-07-21T08:25:06Z","closed_at":null,"body":"I have a script that gets loaded through the `extraHead` option and contains the following piece of code:\r\n```\r\nwindow.addEventListener(\"styleguide:onRendered\", function(e) {\r\n\t// do anything here\r\n\t// use e.originalEvent.detail.elements to get elements\r\n\tconsole.log('page rendered:', e);\r\n\t$(document).foundation();\r\n});\r\n```\r\nHowever, whenever I navigate to another page, nothing is logged to the console and my Foundation components are not being initialized properly. I know that Foundation is loading correctly because I can open the Developer Tools console and type `$(document).foundation()` and the Foundation components will start working correctly."},"comment":{"url":"https://api.github.com/repos/SC5/sc5-styleguide/issues/comments/123211289","html_url":"https://github.com/SC5/sc5-styleguide/issues/719#issuecomment-123211289","issue_url":"https://api.github.com/repos/SC5/sc5-styleguide/issues/719","id":123211289,"user":{"login":"varya","id":27215,"avatar_url":"https://avatars.githubusercontent.com/u/27215?v=3","gravatar_id":"","url":"https://api.github.com/users/varya","html_url":"https://github.com/varya","followers_url":"https://api.github.com/users/varya/followers","following_url":"https://api.github.com/users/varya/following{/other_user}","gists_url":"https://api.github.com/users/varya/gists{/gist_id}","starred_url":"https://api.github.com/users/varya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varya/subscriptions","organizations_url":"https://api.github.com/users/varya/orgs","repos_url":"https://api.github.com/users/varya/repos","events_url":"https://api.github.com/users/varya/events{/privacy}","received_events_url":"https://api.github.com/users/varya/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T08:25:06Z","updated_at":"2015-07-21T08:25:06Z","body":"Hi. I am using this event here http://varya.me/styleguide/#/section/3.1 to initialize my component. It works.\r\nCould you provide the link to your page where it does not?"}}