cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member188585
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Sharathmg
Active Contributor

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

Jayakrishnan
Active Participant
0 Kudos

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.