Do not wait the webpage until finished the called script. Update the relays in a background.