I currently building full background website with video. I make background image sliding, just in case if user internet just run slow. I want to achieve it with modernizr, or any way if possible.
my concept :
if user bandwidth is fast --> using video,
if user bandwidth is slow --> using image sliding.
Here my code.
<div id="con">
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
</video>
<div id="imgslide" style="display: none;">
<img src="img1.png"/>
<img src="img2.png"/>
</div>
</div>
I appreciate for your help.