{"action":"opened","issue":{"url":"https://api.github.com/repos/aframevr/aframe-core/issues/712","labels_url":"https://api.github.com/repos/aframevr/aframe-core/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/aframevr/aframe-core/issues/712/comments","events_url":"https://api.github.com/repos/aframevr/aframe-core/issues/712/events","html_url":"https://github.com/aframevr/aframe-core/issues/712","id":122870067,"number":712,"title":"Use `THREE.Cache` for in-memory asset caching of subsequent requests","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},"labels":[{"url":"https://api.github.com/repos/aframevr/aframe-core/labels/perf","name":"perf","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-18T03:11:36Z","updated_at":"2015-12-18T03:11:36Z","closed_at":null,"body":"Per https://twitter.com/mrdoob/status/677569574020100097, we should do `THREE.Cache.enabled = true` to enable the loader caching.\r\n\r\nWhat does this mean and do?\r\n\r\nIt means if we request (using [any `THREE.js` loader](https://github.com/mrdoob/three.js/tree/master/src/loaders)) the same asset (i.e., an image, COLLADA/OBJ model, audio file - basically anything except a video file [which requires us to create our own `<video>`]) more than once during a page load, `THREE.js` will use its [basic internal in-memory cache](https://github.com/mrdoob/three.js/blob/master/src/loaders/Cache.js) to retrieve the asset on any subsequent requests (forgoing any subsequent HTTP requests for the same URL).\r\n"}}