enable the app to work without dom fully loaded