Using a simple tool at
https://stackoverflow.com/questions/...iable/33768639, the maximum capacities for a string for each browser are:
Firefox = 1,073,741,822 (1 GB)
Chrome = 536,870,888 (500 MB)
The entire file is read into a single string, so these limits will apply to the maximum allowed file size.
---
I just ran a quick test on Firefox. It loaded a 900 MB file, but failed to load a javascript library which I use for reading portfolio files. So more testing is required...
With a fix for that problem, I see another error when trying to process a large XML file...
"Error: Cannot create a string longer than 0x1fffffe8 characters"
That hex number is 536,870,888 bytes, which is 24 bytes less than 512 MB.