neutralinojs / roadmap

The roadmap of Neutralinojs
MIT License
61 stars 2 forks source link

Adding a loading animation to the client #5

Closed FrancXPT closed 2 years ago

FrancXPT commented 2 years ago

Can we have a loading animation in the client

shalithasuranga commented 2 years ago

Hey.. thanks for sending this issue. Yeah, you can use the ready event. The ready event will be triggered when the internal WebSocket connection was established. Therefore, it's possible to hide the loading animation with the ready event callback. Please check more details about events from here:https://neutralino.js.org/docs/api/events

But not sure, you meant to display a loading animation before the page loads?

FrancXPT commented 2 years ago

Thanks for the reply I made a client that redirects you to a URL, so before the page loads I just have a white screen without any hints. Is it possible to have a loading animation before the page is ready.

shalithasuranga commented 2 years ago

Hey.. ah seems like you've mentioned some native animation to indicate the webview page is loading like the usual browser tab's loading animation. Seems like this is a feature request, so I am moving this to the framework repo. Thank you very much for the idea.

shalithasuranga commented 2 years ago

Added: https://github.com/neutralinojs/neutralinojs/issues/814 to track this.. Thanks for the idea :)

FrancXPT commented 2 years ago

No problem, thanks for your support.