title: Increase notification display interval
body: <p>I have a notification in a PHP application which is working fine in terms of displaying the notification popup, but it isn't being displayed for long enough.</p>
  <p>I've tried increasing the <em>setInterval</em> parameter but it doesn't seem to make a difference. The code is based on <a href="https://www.webslesson.info/2017/05/facebook-style-popup-notification-using-php-ajax-bootstrap.html" rel="nofollow noreferrer">this</a> but I can't see any guidance there on increasing the display time.</p>
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
  
          setInterval(function(){
              load_last_notification();
          }, 5000);
  
          function load_last_notification()
          {
              $.ajax({
                  url:&quot;/includes/fetch-notifications.php&quot;,
                  method:&quot;POST&quot;,
                  success:function(data)
                  {
                      $('.content').html(data);
                  }
              })
          }
      });
  &lt;/script&gt;
  </code></pre>