How to mix http request with network information plugin?

here is my code but nothings work
loadData(){
let loading = this.loadingCtrl.create({
content:‘Chargement…’,
showBackdrop:false
});
loading.present();
if(this.network.onConnect()){
this.dermatologueProvider.load().then((data)=>{
this.reponse = data;
loading.dismiss();
}).catch((error)=>{
console.log(error);
setTimeout(()=>{
loading.dismiss();
},3000);
})
}
else if(this.network.onDisconnect()){
let toast = this.toastCtrl.create({
message:‘your are offline’,
duration:3000,
position:‘bottom’
});
toast.present();
}
}