1

We have the issue similar ( maybe the same ) to this one :
Is a big startup delay for the first use of a custom Lightning App ... normal?

The issue :
When we access the Custom App which contains several(15-20) LWC's for the first time in the day it takes a lot of time to load all LWC's (20-30 seconds ).

Interesting that after the first load it takes 4-5 seconds to load the page.
As is described in the question which I mentioned earlier, the Apex Methods imports can cause this long delay.

However my question is next :
Can Custom Labels import cause this delay ?

import ButtonLabel from '@salesforce/label/ButtonLabel';

One of my LWC have 30 Custom Labels imports and for all my LWC's the number if Custom Labels imports will be around 100 imports.

I know that we can't import All labels at once, or at least the List of Custom Labels at once.

I understand that a lot of things can cause this delay. However it is interesting if the Custom Labels imports has a bad impact on the performance ?

Update :
I tried to import 200 Custom Labels to my LWC and Measure lightning page load times with Lightning Debug Mode.
However I see no difference with Custom Labels Imports and without it.

Any help will be appreciated.
Thank you.

2
  • 1
    Did you check the Lightning page analysis to check which LWC takes longer to load ? I build LWCs that has closer to 50 custom labels but didn't notice any performance issues.
    – SL man
    Oct 28, 2022 at 5:47
  • @SLman thanks for a reply. I also did this, I added 200 Custom Labels to my LWC and check it with the Debug Mode and didn't see any difference. I will update my question. Oct 28, 2022 at 9:38

0

You must log in to answer this question.

Browse other questions tagged .