Search code examples
javascriptenyo

Faster loading with webos Enyo application


Platform and framework WEBOS ENYO 2.4

When I package up my application and test it on the emulator, the minification process seems to break some of the files.

I routinely have to run ares-package --no-minify ./Ameba-moonstone in order to get it to work.

I also noticed that moonstone library is quite large and around 400 files are downloaded on initial load .

Can you guys suggest anything I could do to get my application to load faster ?


Solution

  • The minification process uses uglify-js to minify the sources. You could create your own minification process using uglify-js or some other node module. The source for the minification and concatenation steps is in the enyo/tools directory. You can perhaps even do a better job minifying if you can identify moonstone modules you definitely don't need and leave them out of the build.