// timeout to prevent loading of DTM if the library file fails to respond after 3 seconds
setTimeout(() => {
    const body = document.getElementsByTagName( "body" );
    if( body.length > 0 ) return;

    const url = new URL( window.location.href );
    url.searchParams.set( 'dtm', 'off' );
    window.location.replace( url.href );
}, 3000);