title: AJAX replacement with sendBeacon
body: <p>I'm sorry in advance, my native language is not English :(</p>
  
  <p>Since in Chrome version 80 the AJAX queries no longer work in the unload event, I require another alternative, I read about Navigator.sendBeacon the problem is that I did not find an example to send multiple data, for example in AJAX have this:</p>
  
  <pre><code>$(window).on('unload', function() {
      console.log('ajax unload');
      $.ajax({
          type: 'POST',
          url: 'config/myphpfile.php',
          async: false,
          data: {
              xvar1: var1,
              xvar2: var2,
              xvar3: 0
          },
          success: function(data) {
              console.log('work!');
          }
      });
  </code></pre>
  
  <p>As you can see in this AJAX event, it sent 3 variables to my PHP, and one of them the var2 is an array, how can I pass multiple variables in the same way with the Navigator.sendBeacon function, have you done something similar?</p>