{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4326","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4326/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4326/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4326/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/4326","id":210039601,"number":4326,"title":"Tiles cache","user":{"login":"pronebird","id":704044,"avatar_url":"https://avatars1.githubusercontent.com/u/704044?v=3","gravatar_id":"","url":"https://api.github.com/users/pronebird","html_url":"https://github.com/pronebird","followers_url":"https://api.github.com/users/pronebird/followers","following_url":"https://api.github.com/users/pronebird/following{/other_user}","gists_url":"https://api.github.com/users/pronebird/gists{/gist_id}","starred_url":"https://api.github.com/users/pronebird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pronebird/subscriptions","organizations_url":"https://api.github.com/users/pronebird/orgs","repos_url":"https://api.github.com/users/pronebird/repos","events_url":"https://api.github.com/users/pronebird/events{/privacy}","received_events_url":"https://api.github.com/users/pronebird/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-02-24T12:44:00Z","updated_at":"2017-03-02T14:11:05Z","closed_at":"2017-02-28T20:20:53Z","body":"Hi,\r\n\r\nCurrently when map screen shows up I see emptiness for like 5 seconds, then the map starts zooming out slowly showing blank spaces for a second until all tiles are loaded. \r\n\r\nAt the same time bunch of XHR requests run in background, some of them hit browser cache, some get cancelled but it does not really help to provide smooth experience. \r\n\r\nEven if all of the tiles are cached by browser it simply takes way too long for Mapbox GL to fetch images via XHR producing blank tiles when camera zooms out and moves around.\r\n\r\nIs there any way to cache tiles in local storage, on disk or in memory to improve the smoothness and generally decrease amount of traffic?"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/283662989","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/4326#issuecomment-283662989","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4326","id":283662989,"user":{"login":"pronebird","id":704044,"avatar_url":"https://avatars1.githubusercontent.com/u/704044?v=3","gravatar_id":"","url":"https://api.github.com/users/pronebird","html_url":"https://github.com/pronebird","followers_url":"https://api.github.com/users/pronebird/followers","following_url":"https://api.github.com/users/pronebird/following{/other_user}","gists_url":"https://api.github.com/users/pronebird/gists{/gist_id}","starred_url":"https://api.github.com/users/pronebird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pronebird/subscriptions","organizations_url":"https://api.github.com/users/pronebird/orgs","repos_url":"https://api.github.com/users/pronebird/repos","events_url":"https://api.github.com/users/pronebird/events{/privacy}","received_events_url":"https://api.github.com/users/pronebird/received_events","type":"User","site_admin":false},"created_at":"2017-03-02T14:11:05Z","updated_at":"2017-03-02T14:11:05Z","body":"@remster Thanks again. I found your implementation unnecessary complex for my needs, so to conclude I resolved this with CacheStorage that simply caches all requests to `tiles.mapbox.com` and `api.mapbox.com`. The map feels much faster now!"}}
{"actor":{"display_login":"pronebird"}}