{"action":"opened","issue":{"url":"https://api.github.com/repos/HaykoKoryun/kamikmz-viewer/issues/1","labels_url":"https://api.github.com/repos/HaykoKoryun/kamikmz-viewer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/HaykoKoryun/kamikmz-viewer/issues/1/comments","events_url":"https://api.github.com/repos/HaykoKoryun/kamikmz-viewer/issues/1/events","html_url":"https://github.com/HaykoKoryun/kamikmz-viewer/issues/1","id":112036906,"number":1,"title":"image loading optimisations","user":{"login":"HaykoKoryun","id":2579764,"avatar_url":"https://avatars.githubusercontent.com/u/2579764?v=3","gravatar_id":"","url":"https://api.github.com/users/HaykoKoryun","html_url":"https://github.com/HaykoKoryun","followers_url":"https://api.github.com/users/HaykoKoryun/followers","following_url":"https://api.github.com/users/HaykoKoryun/following{/other_user}","gists_url":"https://api.github.com/users/HaykoKoryun/gists{/gist_id}","starred_url":"https://api.github.com/users/HaykoKoryun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaykoKoryun/subscriptions","organizations_url":"https://api.github.com/users/HaykoKoryun/orgs","repos_url":"https://api.github.com/users/HaykoKoryun/repos","events_url":"https://api.github.com/users/HaykoKoryun/events{/privacy}","received_events_url":"https://api.github.com/users/HaykoKoryun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-18T19:40:03Z","updated_at":"2015-10-18T19:40:03Z","closed_at":null,"body":"Currently once the zip file is extracted in the browser, the image references in the `collada` xml are replaced with `base64` versions of their data, only to be loaded back in later as `Image` elements with their respective `src` attribute set to the `base64` `data-url`, which isn't all that efficient since to get the `base64` we already loaded it into memory as an `Uint8Array`.\r\n\r\nI think the ColladaLoader needs to heavily modified to received an index of already loaded images and use them instead when it is parsing the original collada xml. "}}