How check if a device have connection when it's starting (and close app if not)

Take a variable networkAvailable = false;.

<iframe [hidden]="!networkAvailable"></iframe>

Later in your JavaScript, detect network status using cordova-plugin-network-information and set the networkAvailable variabel to true.
This way user won’t see broken contents.