This is the code that I have written to play a music in the background. how can I add a two-second delay into it? this would give time for the images to fully load
<!DOCTYPE html>
<html>
<head>
<title>Animate</title>
<script type="text/javascript">
var isChrome = /Chrome/.test(navigator.userAgent) && /Google
Inc/.test(navigator.vendor);
if(!isChrome){
$('#iframeAudio').remove()
}
else{
$('#playAudio').remove() //just to make sure that it will not have 2x audio
in the background
}
</script>
</head>
<body>
<iframe src="Happy Birthday Song.mp3" allow="autoplay" style="display:none" id="iframeAudio">
</iframe>
<audio autoplay loop id="playAudio">
<source src="Happy Birthday Song.mp3">
</audio>
</body>
</html>