});
if($('.timer').length > 0) {
const xhr = new XMLHttpRequest();
- xhr.open('HEAD', '/');
+ xhr.open('HEAD', '/204');
xhr.onload = () => {
const srvtime = Date.parse(xhr.getResponseHeader('Date'));
offset = Math.ceil((srvtime - Date.now()) / 1000);