{"action":"created","issue":{"url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/249","labels_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/249/comments","events_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/249/events","html_url":"https://github.com/duke-libraries/ddr-public/issues/249","id":122568298,"number":249,"title":"Multi image items with many components are slow to load","user":{"login":"corylown","id":458247,"avatar_url":"https://avatars.githubusercontent.com/u/458247?v=3","gravatar_id":"","url":"https://api.github.com/users/corylown","html_url":"https://github.com/corylown","followers_url":"https://api.github.com/users/corylown/followers","following_url":"https://api.github.com/users/corylown/following{/other_user}","gists_url":"https://api.github.com/users/corylown/gists{/gist_id}","starred_url":"https://api.github.com/users/corylown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corylown/subscriptions","organizations_url":"https://api.github.com/users/corylown/orgs","repos_url":"https://api.github.com/users/corylown/repos","events_url":"https://api.github.com/users/corylown/events{/privacy}","received_events_url":"https://api.github.com/users/corylown/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/duke-libraries/ddr-public/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-16T18:07:09Z","updated_at":"2015-12-16T18:40:21Z","closed_at":null,"body":"For example: https://repository.lib.duke.edu/dc/rushbenjaminandjulia/brpst032001"},"comment":{"url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/comments/165206922","html_url":"https://github.com/duke-libraries/ddr-public/issues/249#issuecomment-165206922","issue_url":"https://api.github.com/repos/duke-libraries/ddr-public/issues/249","id":165206922,"user":{"login":"seanaery","id":3933756,"avatar_url":"https://avatars.githubusercontent.com/u/3933756?v=3","gravatar_id":"","url":"https://api.github.com/users/seanaery","html_url":"https://github.com/seanaery","followers_url":"https://api.github.com/users/seanaery/followers","following_url":"https://api.github.com/users/seanaery/following{/other_user}","gists_url":"https://api.github.com/users/seanaery/gists{/gist_id}","starred_url":"https://api.github.com/users/seanaery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanaery/subscriptions","organizations_url":"https://api.github.com/users/seanaery/orgs","repos_url":"https://api.github.com/users/seanaery/repos","events_url":"https://api.github.com/users/seanaery/events{/privacy}","received_events_url":"https://api.github.com/users/seanaery/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T18:40:21Z","updated_at":"2015-12-16T18:40:21Z","body":"A few initial ideas...\r\n\r\nOne thing that's almost certainly contributing to the slowness is that the \"Files\" section that lists all the components for a file--complete with thumbnail and not paginated--is actually rendering in the item page below the metadata but is wrapped in a div with display:none.  I'm sure we'll find many other optimization opportunities as well.\r\n\r\nI think OpenSeadragon uses lazy-loading so it's likely only trying to load assets as needed while a user navigates an item. \r\n\r\nThe methods in use by the multi-image items for assembling the array of tilesource paths sequentially by structmap order are probably expensive, get called more times than necessary, and hopefully are ripe for replacement."}}