Skip to Content
0

Why SAPUI5 loads JS file for each control used in app?

Jan 16 at 04:09 PM

59

avatar image
Former Member

Hello,

We have a UI5 application where users always complains about the performance of the app so we followed this blog and improved some. When I am checking network tab I see that the UI5 library first loads core library (sap-ui-core.js) and after that it loads the JS file for each and every control which I am using in the apps - below image.

By making this call to server each time for every control the time consume is pretty high ~37 seconds (without any data just plain UI). I am not sure whether this is the standard behavior of UI5 or we are doing something wrong.

Any guidance would be helpful for us?

Thanks,
Rahul

load-time.png (56.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sharath M G Jan 16 at 05:44 PM
1

Use the option of Component-preload to minify and preload the libraries for loading controls and their relevant libraries.

Check this thread for more details:

https://archive.sap.com/discussions/thread/3486179

Regards,

Sharath

Share
10 |10000 characters needed characters left characters exceeded
Jayakrishnan Chandramohan Feb 02 at 11:46 AM
0

Hi Rahul,

I am sure, the question what i am going to ask here is irrelevant to this post. But i need to know the answer for your previous post "Creating Custom Launchpad". have you completed that? i also need to do the same in my firm. If you share any info about that it will be useful for me.

i have already posted one question.

https://answers.sap.com/questions/320589/how-to-create-custom-launchpad.html

Thank you,

Regards,

JK.

Share
10 |10000 characters needed characters left characters exceeded