As a beginner with JSON and Javascript, I am currently working on an app that requires handling multiple sets of data. With nearly 300 entries, each containing 6 properties, storing them in JSON format seems to be the most efficient approach. My goal is to retrieve this data from the app and perform various calculations.
However, I am struggling to determine the best method for storing this vast amount of data. While using global variables is convenient, it is not considered a good practice. One option I am considering is to store the data in a separate file and load it in using jQuery. Although this process may be more complex, it offers the advantage of easy updates when the entries need to be modified. I am uncertain about how this approach could impact the load times of the app.
In light of these considerations, I am seeking advice on the most preferable way or if there are alternative solutions that would work better. How would you recommend handling this situation?