I am working on a js app which loads some xml files stored in another server. I am using ofcourse XHR to load and access their content.
As a first level I just acces the top level file which contains the name of the elements and I show them in a thumbnail format. My idea is to show the title of the files and the number of items that every element contain. Also and in the second level when the user clicks on one of the elements(thumbnails) I load the content of the clicked element. So I am wandering if my process is performant or not since I load or access the files two times the first when I show the number of items an element contain and in a second time when the user clicks on the element and iI shows its content.
Please what do you think? Is there another good solution? Thanks a lot for your answers :)