Loaded Page Question!

Hello everyone,

I have a Question, In most of pages of my application there is a little problem.
For example I have a notification Like presented in the next picture. When a page has loaded, If there is a notification the purple appear ( and that’s ok)
and If there is no notifications the purple Appear for a second and disappear. All I want is the page will load without showing that delay.
Capture

Can you make it hidden by default and show it only if there are notifications?

Yeah It’s a solution, But as I said It’s just an example.
does there is another way that a page will be showed after All conditions in that page are done ?