ength>len) return str.substr(0,len);
        const a = []; a.length = len - str.length;
        return str+a.join('&nbsp;');
    };

    const urlParams = new URL(self.location.href).searchParams;
    const W = new Worker(
        "speedtest1-worker.js?sqlite3.dir=jswasm"+
            (urlParams.has('opfs-verbose') ? '&opfs-verbose' : '')+
            (urlParams.has('opfs-disable') ? '&opfs-disable' : '')
    );
    const mPost = function(msgType,payload){
        W.postMessage({type: msgType, data: payload