Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 23, 2019 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/16541d28c294c52d3d8d1ac89488fb51 to your computer and use it in GitHub Desktop.
Save parzibyte/16541d28c294c52d3d8d1ac89488fb51 to your computer and use it in GitHub Desktop.
document.addEventListener("DOMContentLoaded", function(){
// Invocamos cada 5 segundos ;)
const milisegundos = 5 *1000;
setInterval(function(){
// No esperamos la respuesta de la petición porque no nos importa
fetch("./refrescar.php");
},milisegundos);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment