Performance Warning  'OnInitialize' contains accesses to the local storage or server,
Question
Application Type
Mobile

Performance Warning

'OnInitialize' contains accesses to the local storage or server, which delays the block's render. To avoid performance issues, use Aggregates or Data Actions instead


How to resolve in the Mobile 

mvp_badge
MVP

Hi BRNAIDU85,


Like the message suggest, you should use Aggreagates or Data Actions, by right clicking the screen / block and add an option accordingly:



The reason behind the warning is that the screen will only start to render when the OnInitialize is finished. It is a bad user experience to have the screen "frozen" and thus you should avoid reading information from the storage or database (or server actions) that will contribute for this "freezing" delay. You can read more about it here.


Kind Regards,
João

@Joao Marques

We try to create Data action but not solve the problem. and also read the documentation on warning but no soluton.

mvp_badge
MVP

Hi BRNAIDU85,


Have you cleared your OnInitialize from server calls or data actions / aggregate calls?

Are you sure the warning is related to the screen you have just changed?


You definitely need to give more details to help you out, mate.

Hello @BRNAIDU85 ,

I hope you doing great.

Please go through below information which is mentioned in outsystems performance suggestion warning document.

Message
'<OnInitialize action>' contains accesses to the local storage or server, which delays the <screen | block >'s render. To avoid performance issues, use Aggregates or Data Actions instead.
Cause
The rendering of the screen/block only starts after the OnInitialize action finishes. If you access the local storage or execute requests to the server during this stage, you may delay the rendering of the screen/block and make the app look unresponsive.
Recommendation
Move all logic that accesses local storage or server into Screen Aggregates or Data Actions. This way the rendering starts sooner and the fetching of the data or running other server operations runs concurrently, while the screen/block is rendering. For more information, see the Screen and Block Lifecycle Events documentation.


Regards,

Ajit kurane.

Hi @BRNAIDU85,

You can refer below response from OutSystems success page..

Refer : https://success.outsystems.com/Documentation/11/Reference/Errors_and_Warnings/Warnings/Performance_Suggestion_Warning

Thanks, Aadhavan S

mvp_badge
MVP

This is the same information shared by Ajit 29 minutes earlier

UserImage.jpg
Sameer Dhulia

Hi,

As per scenario, what currently the issue was this :

And changes we need to figure out:


Hope this may help you.


Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.