{"action":"created","issue":{"url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/115","labels_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/115/comments","events_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/115/events","html_url":"https://github.com/miromannino/Justified-Gallery/issues/115","id":101970886,"number":115,"title":"Not working on dynamically loaded content","user":{"login":"Dame1701","id":8349528,"avatar_url":"https://avatars.githubusercontent.com/u/8349528?v=3","gravatar_id":"","url":"https://api.github.com/users/Dame1701","html_url":"https://github.com/Dame1701","followers_url":"https://api.github.com/users/Dame1701/followers","following_url":"https://api.github.com/users/Dame1701/following{/other_user}","gists_url":"https://api.github.com/users/Dame1701/gists{/gist_id}","starred_url":"https://api.github.com/users/Dame1701/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dame1701/subscriptions","organizations_url":"https://api.github.com/users/Dame1701/orgs","repos_url":"https://api.github.com/users/Dame1701/repos","events_url":"https://api.github.com/users/Dame1701/events{/privacy}","received_events_url":"https://api.github.com/users/Dame1701/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-19T18:48:21Z","updated_at":"2015-08-19T19:03:22Z","closed_at":null,"body":"Hi,\r\n\r\nDoes the plugin work with dynamically loaded content? I can get it to work just fine if I manually add my images to a webpage and then call the plugin on Document.Ready. However, if I try to load my images in dynamically via Angular (with an http request), once the loading is done and the scope is updated, when I call the plugin, it seems to get stuck trying to resize the images and everything goes wrong.\r\n\r\n Essentially the images orientate themselves vertically beneath one another then reduce in size very slowly before finally overlapping in a long vertical row. Something is clearly amiss. I have tried calling the gallery event way after the images have loaded i.e. I added a button to manually call the justify routine but there is no change.\r\n\r\nWould be very grateful for any advice you have.\r\n\r\nMany thanks,\r\n\r\nDamien"},"comment":{"url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/comments/132743971","html_url":"https://github.com/miromannino/Justified-Gallery/issues/115#issuecomment-132743971","issue_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/115","id":132743971,"user":{"login":"Dame1701","id":8349528,"avatar_url":"https://avatars.githubusercontent.com/u/8349528?v=3","gravatar_id":"","url":"https://api.github.com/users/Dame1701","html_url":"https://github.com/Dame1701","followers_url":"https://api.github.com/users/Dame1701/followers","following_url":"https://api.github.com/users/Dame1701/following{/other_user}","gists_url":"https://api.github.com/users/Dame1701/gists{/gist_id}","starred_url":"https://api.github.com/users/Dame1701/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dame1701/subscriptions","organizations_url":"https://api.github.com/users/Dame1701/orgs","repos_url":"https://api.github.com/users/Dame1701/repos","events_url":"https://api.github.com/users/Dame1701/events{/privacy}","received_events_url":"https://api.github.com/users/Dame1701/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T19:03:22Z","updated_at":"2015-08-19T19:03:22Z","body":"Found the problem, the css wasn't loading in correctly - cache problem with the browser."}}