I have a really large JavaScript file (like over 10mb), that is split up into different sections, by byte-offset
I want to load this JavaScript file into my HTML code as different snippets, depending on the byte offset, using a script tag, such that only that part of the JS file would be loaded
I'm aware I could set it up on my server to take in a GET request query string like ?bytes=10-40 at the end o the src url, but I was wondering if its possible to do this with just client-side code, with no additions to the server (assuming the server anyways supports accept-ranges:bytes, or preferably just for offline use, if thats even possible, to just include the offline js file and get the contents that way)
Is this possible to do in client-side JavaScript (with no other XMLHttpRequest or fetch)?