I built a meteor app with a big background image. Right now the app starts and the user can watch while the image is loading. It would be better for me to load the needed background-image first and if the loading has finished the app will show up. I tried to search for some concepts for that, but I didn't find a solution, which is usable with meteor.
So I thought of using the waitOn-function of the Iron-Router:
Router.route('/', {
name: 'home',
yieldRegions: {
'navigationBar': { to: 'navigation' },
'contentPage': { to: 'content' }
},
waitOn: function() {
// Loading image, and if loaded, go further on...
}
});
Maybe someone has a idea how to do that...