I do not believe this to be a duplicate of How to display loading image while actual image is downloading As far as I can see the jquery solution merely loads on the loader image on the screen while I am looking for image to be placed in the precise position and to the exact dimensions of my jumbotron. I would also imagine that jquery would add a potential performance hit which is essentially what I am trying to avoid.
I have a large background image that takes up the full width and height of my jumbotron. I have taken several measures so that it loads more quickly but there is still a delay of about two seconds where the user is left looking at a blank space between my navbar and the rest of the page. Is there a way I can put something in the background of the background image (perhaps a low quality image that will load fast or a colored panel) so that something will be visible in the space while the image loads?
<style>
.jumbotron {
position: relative;
background: url("images/main.jpg") center center;
width:1137px;
height:342px;
background-size: cover;
overflow: hidden;
}
.jumbotron h1{
color: #fff;
}
.jumbotron h2{
color: #fff;
}
.jumbotron p{
color: #fff;
}
</style>
<div class="container">
<div class="jumbotron">
<br><h2>What are <i>you</i> training for?</h1><br><br><br><br>
</div>
</div>