title: Javascript Timed Notifications - setTimeout, setInterval
body: <p>I am creating a web app that allows users to manage a calendar (CRUD events, tasks, reminders etc...) </p>
  
  <p>And I am trying to implement a feature where they will receive a popup reminder x-minutes before the event/task. From my understanding there is really only one way to do this with javascript:</p>
  
  <p>On login, check for any upcoming events in the database (say in the next 12 hours) and create a <code>setTimeout</code> for the next event, when that <code>setTimeout</code> executes, check again for next event and so on...</p>
  
  <p>My question is, will having multiple setTimeouts (10+) running in the background during user interaction slow down the performance of my app?</p>
  
  <p>Is there a better way to handle popup notifications on the client side? Push Notifications? Any suggestions would be greatly appreciated!</p>