Ionic modal when app is offline - possible?

Hi,
simple question - is there a way to prepare modal instance ad-hoc and display it via present() method later?

I got situation where user can loose a network connection and then I want to display proper message using modal component but it seems, some additional script is being injected then via WebPack and everything fails when user is offline. :frowning: