Search code examples
jqueryhtmlxmljsonjquery-xml

jQuery: Fastest way to load and use a big XML file


I have a quite big XML file (around 5MB) and need to load that with jQuery. Afterwards, I would like to query and display some data in my html file (I am thinking about a similar way to do that as .NET/C# provides it).

What is the fastest way to load such a big file?

Would it be a good approach to convert the xml file to a json object (with this plugin?


Solution

    1. Use JSON instead of XML
    2. If you are loading a Tree, you can make use of the "Lazy Loading" principle