Skip to Content
avatar image
Former Member

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 16 at 05:44 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02 at 11:46 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded