Solved this issue by loading the website in a iframe with display set to none, Would recommend to deffer iframe loading to last with the following script such that it does not interfere with whatever you are doing
var iframe = document.createElement('iframe');
iframe.style.display = "none";
iframe.src = your_iframe_source_url;
document.body.appendChild(iframe);