I have this javascript worker for fetching data on the PHP backend
ajax-worker.js
self.onmessage = function(e){ var xhttp = new XMLHttpRequest();