Are there too many setTimeout () s good? : you have already given your answer; too much is not very good, no matter what you say.
This will usually be good for the site . Probably not, remember that you donβt know the processor / browser combojube of your users, so you need to create your site so that it is still enjoyable for people with slower computers than you. The loggie / unresponsive site is the first from which users will run.
Since there will clearly be no problems connecting to the Internet on the client side, right? if you are not performing network requests as part of timeouts. Ajax calls every second, rarely a good idea.
Is this bad practice or is it not a problem at all? Bad architecture is bad practice. If you want to follow best practices, check out design patterns.
Also, I have a question for jQuery. There are things that regular Javascript and jQuery can do in a similar way (e.g. innerHTML and .html ()), right? Given this situation that I should use, jQuery or Javascript? Using jQuery gives you convenient cross-browser compatibility. In most cases, for non-experts using a library such as jQuery, it is better than not using it.
source share