y like progress events also work.
    async function request(url, imageId, options = { byteRange: '0-100000' }) {
        const { byteRange } = options;

        const headers = new Headers({
            'Range': `bytes=${byteRange}`,
        });

        try {
            const response = await fetch(url, { headers });
            const partialFileArrayBuffer = await response.arrayBuffer();
            const contentRange = response.headers.get('content-range');
            const fileTotalLength = parseInt(