{"action":"created","issue":{"url":"https://api.github.com/repos/readium/readium-js-viewer/issues/438","labels_url":"https://api.github.com/repos/readium/readium-js-viewer/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/readium/readium-js-viewer/issues/438/comments","events_url":"https://api.github.com/repos/readium/readium-js-viewer/issues/438/events","html_url":"https://github.com/readium/readium-js-viewer/issues/438","id":119467467,"number":438,"title":"Chrome app RequireJS asynchronous config, Web Worker postMessage() / onmessage() READY event","user":{"login":"danielweck","id":625201,"avatar_url":"https://avatars.githubusercontent.com/u/625201?v=3","gravatar_id":"","url":"https://api.github.com/users/danielweck","html_url":"https://github.com/danielweck","followers_url":"https://api.github.com/users/danielweck/followers","following_url":"https://api.github.com/users/danielweck/following{/other_user}","gists_url":"https://api.github.com/users/danielweck/gists{/gist_id}","starred_url":"https://api.github.com/users/danielweck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielweck/subscriptions","organizations_url":"https://api.github.com/users/danielweck/orgs","repos_url":"https://api.github.com/users/danielweck/repos","events_url":"https://api.github.com/users/danielweck/events{/privacy}","received_events_url":"https://api.github.com/users/danielweck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T10:50:40Z","updated_at":"2015-11-30T10:54:21Z","closed_at":"2015-11-30T10:54:21Z","body":"The `readium_js_viewer/workers/EpubLibraryWriter` AMD module name is currently force-loaded at the end of the file itself, to work around the async behaviour of RequireJS `insertRequire: []` config. This can be fixed with a `READY` event in the Web Worker `postMessage()` / `onmessage()` communication protocol.\r\nAlso, the `src/chrome-app/requirejs-config.js` config itself is loaded via HTML `<script />` which fails to complete in time on some platforms (`require.config()` call). A better approach would be to ship the config file inside the RequireJS optimized bundle itself (just like the Web Worker does)."},"comment":{"url":"https://api.github.com/repos/readium/readium-js-viewer/issues/comments/160596564","html_url":"https://github.com/readium/readium-js-viewer/issues/438#issuecomment-160596564","issue_url":"https://api.github.com/repos/readium/readium-js-viewer/issues/438","id":160596564,"user":{"login":"danielweck","id":625201,"avatar_url":"https://avatars.githubusercontent.com/u/625201?v=3","gravatar_id":"","url":"https://api.github.com/users/danielweck","html_url":"https://github.com/danielweck","followers_url":"https://api.github.com/users/danielweck/followers","following_url":"https://api.github.com/users/danielweck/following{/other_user}","gists_url":"https://api.github.com/users/danielweck/gists{/gist_id}","starred_url":"https://api.github.com/users/danielweck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielweck/subscriptions","organizations_url":"https://api.github.com/users/danielweck/orgs","repos_url":"https://api.github.com/users/danielweck/repos","events_url":"https://api.github.com/users/danielweck/events{/privacy}","received_events_url":"https://api.github.com/users/danielweck/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T10:54:21Z","updated_at":"2015-11-30T10:54:21Z","body":"Addressed here: https://github.com/readium/readium-js-viewer/commit/81c154b18ae873ab64552544caae889043b20045"}}