More efficient method?

More efficient method?

Is there a more efficient method to go about doing this? I want to call the data on page load, and then start running through the intervals. My current setup:

  1. $(document).ready(function(){
  2.     //run it on startup
  3.     $.ajax({
  4.             url: "js/latestNotice.php",
  5.             cache: false
  6.         }).done(function( notice ) {
  7.             $("#notice").html('<b>Latest Notice:</b>&nbsp;' + notice);
  8.         });
  9.         
  10.         $.ajax({
  11.             url: "js/online.php",
  12.             cache: false
  13.         }).done(function( online ) {
  14.             $("#users").html(online);
  15.         });
  16.     
  17.     setInterval(function(){
  18.         $.ajax({
  19.             url: "js/latestNotice.php",
  20.             cache: false
  21.         }).done(function( notice ) {
  22.             $("#notice").html('<b>Latest Notice:</b>&nbsp;' + notice);
  23.         });
  24.         
  25.         $.ajax({
  26.             url: "js/online.php",
  27.             cache: false
  28.         }).done(function( online ) {
  29.             $("#users").html(online);
  30.         });
  31.     }, 15000);
  32. });