mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Async style loading? #303
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pwasiewicz on GitHub (Apr 23, 2019).
Originally assigned to: @GregorBiswanger on GitHub.
When I attach whole bootstrap css and my custom css (just after bootstrap) with own coloring - I can observer strange behaviour:
It seems like css is applied after site is rendered and since bootstrap is quite heavy, effect is visible.
Can it be masked somehow?
@GregorBiswanger commented on GitHub (May 16, 2019):
Please code a little hello world example that produces this problem and make it available to me. Then I can help you.
@pwasiewicz commented on GitHub (May 19, 2019):
@GregorBiswanger I have created similar app: https://github.com/pwasiewicz/ElectronDrawIssue
It has the same problem - navbar is "flashing" during page render (it looks like page is rendered first and then styles applied).
@GregorBiswanger commented on GitHub (May 22, 2019):
Hey @pwasiewicz
I found some points for optimization:
It then takes a little longer until the window becomes visible. From the new Electron.NET version 5.22.12 you can set a splashscreen. See here the necessary electron.manifest.json: https://github.com/ElectronNET/Electron.NET/blob/master/ElectronNET.WebApp/electron.manifest.json
Could I help you?
@pwasiewicz commented on GitHub (May 22, 2019):
@GregorBiswanger thanks, I will definitely check this out!
I am aware that app should written as SPA, but I am creating simple APP for internal use, and bare MVC allows to do me it quickly. I don't mind if window visibility time will be a little longer as soon as flickering effect is gone.
Will let you know as soon as I check it it my app.
Regards!
@thamathar commented on GitHub (May 28, 2019):
Is is possible to add messages on the splashscreen?! To pass the information for what the program is doing to the user?
@GregorBiswanger commented on GitHub (May 28, 2019):
@thamathar No, we have only an image support for splashscreens. The waiting time is only for startup asp.net core..