{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/1475","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/1475/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/1475/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/1475/events","html_url":"https://github.com/scala-js/scala-js/issues/1475","id":56796316,"number":1475,"title":"fullOptJS: chunked output possible?","user":{"login":"siriux","id":715386,"avatar_url":"https://avatars.githubusercontent.com/u/715386?v=3","gravatar_id":"","url":"https://api.github.com/users/siriux","html_url":"https://github.com/siriux","followers_url":"https://api.github.com/users/siriux/followers","following_url":"https://api.github.com/users/siriux/following{/other_user}","gists_url":"https://api.github.com/users/siriux/gists{/gist_id}","starred_url":"https://api.github.com/users/siriux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siriux/subscriptions","organizations_url":"https://api.github.com/users/siriux/orgs","repos_url":"https://api.github.com/users/siriux/repos","events_url":"https://api.github.com/users/siriux/events{/privacy}","received_events_url":"https://api.github.com/users/siriux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scala-js/scala-js/labels/community","name":"community","color":"fbca04"},{"url":"https://api.github.com/repos/scala-js/scala-js/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-06T10:38:59Z","updated_at":"2015-04-01T02:05:10Z","closed_at":null,"body":"Hi,\r\n\r\nI open a new issue, even if https://github.com/scala-js/scala-js/issues/947 is closely related because I'm interested in fullOptJS.\r\n\r\nGiven that the Closure Compiler already supports compiling multiple modules together, but generating the output in multiple files, I think this should be fairly easy. \r\n\r\nAlso, seeing the code from optimizeIR here: https://github.com/scala-js/scala-js/blob/f4ba58cc2c89ca8e6a147d45d4793ddfac23f5cb/tools/jvm/src/main/scala/org/scalajs/core/tools/optimizer/ScalaJSClosureOptimizer.scala\r\n\r\nLooking at the code, it should be really easy to add independent modules, as long as we know how to separate the files. A really simple option (that can cover most use cases) would be to just allow to compile some libraries as independent files, because we already know the files in a library.\r\n\r\nThis can be really useful for large applications, allowing to show something really fast (even on mobile), while lazy loading the fat libraries only when needed. Also, once we have the split output, it's really easy from the code to load the file when needed, but a standard way of doing this this would be even better."},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/88312208","html_url":"https://github.com/scala-js/scala-js/issues/1475#issuecomment-88312208","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/1475","id":88312208,"user":{"login":"gzm0","id":1140323,"avatar_url":"https://avatars.githubusercontent.com/u/1140323?v=3","gravatar_id":"","url":"https://api.github.com/users/gzm0","html_url":"https://github.com/gzm0","followers_url":"https://api.github.com/users/gzm0/followers","following_url":"https://api.github.com/users/gzm0/following{/other_user}","gists_url":"https://api.github.com/users/gzm0/gists{/gist_id}","starred_url":"https://api.github.com/users/gzm0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzm0/subscriptions","organizations_url":"https://api.github.com/users/gzm0/orgs","repos_url":"https://api.github.com/users/gzm0/repos","events_url":"https://api.github.com/users/gzm0/events{/privacy}","received_events_url":"https://api.github.com/users/gzm0/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T02:05:10Z","updated_at":"2015-04-01T02:05:10Z","body":"@siriux is this still an issue, or can we close it?"}}