Skip to content

Enable dart2js to split output into N files to reduce initial download size #3940

Description

@DartBot

This issue was originally filed by andreb...@gmail.com


When using dart2js the generate javascript contains everything required to run the code, but sometimes the application don't need to use the entire code to execute.

An example:
mainPage:
  load the std library and mainPage.dart
configPage:
  load only the configPage.dart code and use the rest that was loaded
in the mainPage

The idea is to have something similar to what is done in GWT (with runAsync) and closure-compiler (with modules).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions