Search posts, tags, users, and pages
Recently, I had come across a bug that needed auto-refresh after a certain point of time. And setTimeout() had been used to count down to the time and reload the page. Little did I know that setTimeout() came with a price. As quoted on MDN Web Docs ...
Divyajyoti Ukirde
@divyajyotiuk · Pune, India
I invest in knowledge
I am a Software Engineer aspiring to explore the depths of technology! Currently working on the following tech stack: Javascript, jQuery, HTML, CSS, Node.js, bootstrap 4, Python Pronoun: she/her
Markdown supported · ⌘↵ to post
Iroegbu Iroegbu
Do you think using BigInt will solve the original problem instead of using setInterval?
setInterval
Since, I don't know the maximum time, I would avoid using any timer at all!
Iroegbu Iroegbu
Do you think using BigInt will solve the original problem instead of using
setInterval?