Currently, I am in the process of developing a website that utilizes jQuery File Tree. However, there is an issue with the enormous size of the AJAX response from the server - 900 KB and containing approximately 70,000 'files' (which are not actually displayed).
Due to this large amount of data being processed on the client-side by JavaScript, the browser sometimes freezes under the strain.
I am seeking possible solutions for this dilemma. Is there a way to instruct the browser to anticipate such a substantial load similar to setting max_execution_time and memory_limit in PHP?
Another approach could involve breaking down the request into smaller segments. Although this would require significant coding efforts, I am uncertain if browsers can effectively handle manipulating such a vast number of DOM nodes.
If you have any alternative suggestions or ideas on how to tackle this issue, please share them.