{"action":"created","issue":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/4020","repository_url":"https://api.github.com/repos/photonstorm/phaser","labels_url":"https://api.github.com/repos/photonstorm/phaser/issues/4020/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser/issues/4020/comments","events_url":"https://api.github.com/repos/photonstorm/phaser/issues/4020/events","html_url":"https://github.com/photonstorm/phaser/issues/4020","id":358587918,"node_id":"MDU6SXNzdWUzNTg1ODc5MTg=","number":4020,"title":"Issue Loading sprite sheet base64","user":{"login":"shubhamseth2527","id":17332279,"node_id":"MDQ6VXNlcjE3MzMyMjc5","avatar_url":"https://avatars3.githubusercontent.com/u/17332279?v=4","gravatar_id":"","url":"https://api.github.com/users/shubhamseth2527","html_url":"https://github.com/shubhamseth2527","followers_url":"https://api.github.com/users/shubhamseth2527/followers","following_url":"https://api.github.com/users/shubhamseth2527/following{/other_user}","gists_url":"https://api.github.com/users/shubhamseth2527/gists{/gist_id}","starred_url":"https://api.github.com/users/shubhamseth2527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubhamseth2527/subscriptions","organizations_url":"https://api.github.com/users/shubhamseth2527/orgs","repos_url":"https://api.github.com/users/shubhamseth2527/repos","events_url":"https://api.github.com/users/shubhamseth2527/events{/privacy}","received_events_url":"https://api.github.com/users/shubhamseth2527/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-10T11:49:53Z","updated_at":"2018-09-10T11:55:16Z","closed_at":null,"author_association":"NONE","body":"I have load a base64 spritesheet when clear my history it will not load the spritesheet but after reload it will automatically disappear warning. but my issue is every time when i run on new system or mobile my spritesheet will not load .\r\n```\r\nvar image1sprite = 'base64anydfefrvfcbv';\r\nvar image2sprite = 'base64anybfgbfbgfbf';\r\ncardRandomDistribute = [image1sprite , image2sprite];\r\n for (var i = 0; i < 10; i++) {\r\n        var cardsImg = new Image();\r\n        var key = \"cards\" + i;\r\n        cardsImg.onload = cardSpriteSheetLoad(i, key, cardsImg);\r\n    }\r\n    function cardSpriteSheetLoad(i, key, cardsImg) {\r\n    cardsImg.src = cardRandomDistribute[i];\r\n    tempGame.textures.addSpriteSheet(key, cardsImg, {\r\n        frameWidth: gameOptions.cardSheetWidth,\r\n        frameHeight: gameOptions.cardSheetHeight\r\n    });\r\n}\r\n```\r\nWhen First time load all my image were distribute but when click on show image  it will show empty image but when i refresh warning will auto remove and next time it will work perfect. \r\n![screen shot 2018-09-10 at 5 11 44 pm](https://user-images.githubusercontent.com/17332279/45295529-a793e780-b51c-11e8-9ee1-9e3bc6487646.png)\r\n"},"comment":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/comments/419886805","html_url":"https://github.com/photonstorm/phaser/issues/4020#issuecomment-419886805","issue_url":"https://api.github.com/repos/photonstorm/phaser/issues/4020","id":419886805,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTg4NjgwNQ==","user":{"login":"photonstorm","id":164476,"node_id":"MDQ6VXNlcjE2NDQ3Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/164476?v=4","gravatar_id":"","url":"https://api.github.com/users/photonstorm","html_url":"https://github.com/photonstorm","followers_url":"https://api.github.com/users/photonstorm/followers","following_url":"https://api.github.com/users/photonstorm/following{/other_user}","gists_url":"https://api.github.com/users/photonstorm/gists{/gist_id}","starred_url":"https://api.github.com/users/photonstorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/photonstorm/subscriptions","organizations_url":"https://api.github.com/users/photonstorm/orgs","repos_url":"https://api.github.com/users/photonstorm/repos","events_url":"https://api.github.com/users/photonstorm/events{/privacy}","received_events_url":"https://api.github.com/users/photonstorm/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T11:55:16Z","updated_at":"2018-09-10T11:55:16Z","author_association":"OWNER","body":"Also, this is wrong: `cardsImg.onload = cardSpriteSheetLoad(i, key, cardsImg);` - that is invoking the function immediately. You should only have the callback reference here."}}
{"actor":{"display_login":"photonstorm"}}