cancel
Showing results for 
Search instead for 
Did you mean: 

How do deploy/minimize a UI5 Web App to improve load performance?

Former Member
0 Kudos

Basic problem: We built a large application with many custom notepad controls. On high latency networks, the application load performance is poor because all those notepad controls are individual loaded create many hops round trips to the server. Like SAPUI5 there is a sapui5.min.js file that packages all the *.js files into a single load file, thus reducing the latency and evening provisioning it onto a CDN.

Is there a tool or method for minimizing ui5 app into a small set or single js file (ignore other resource types e.g. png)? We would like to run this in a build process so transformation tool would be ideal. It would also be nice if it removed excess white and worked with the ui5 declare/require framework (maybe these need to be removed if it goes into a single file),

PS - My app doesn't need cordova or to be in the apple store, thus we would like to avoid a mac development environment.

Accepted Solutions (1)

Accepted Solutions (1)

daniel_ruiz2
Active Contributor
0 Kudos

Hi,

I'd recommend either the preload option or use webpack to bundle your dependencies.. Using webpack you can even do a better job than SAP and not load stuff you don't need.

Cheers,

Dan.

Former Member
0 Kudos

Have you had any experience with Google's closure compiler?

Answers (1)

Answers (1)

jibin_joy
Contributor
0 Kudos

Hi Joseph,

  I recommend  for preload options .

For More Information    GitHub - SAP/grunt-openui5: Grunt tasks around OpenUI5

Regards,

Jibin Joy