Here is my code: https://jsfiddle.net/3kb337bt/
<span>Hurry, Sale Ends In: </span><div id="countdown"></div>
When the page loads the timer doesn't display right away. How can I remove the 1-2 second delay and make it display immediately?
This is due to your showRemaining()
function not being called on page load. It will take the specified delay (1000 in this case) until it gets called the first time. You can stop this by changing the delay since the countdown isn't affected by it.