Answer the question
In order to leave comments, you need to log in
Include JSON on the page or make AJAX requests?
There is a content mobile application - a regular SPA wrapped by Phonegap. Inside is a large JSON file with static data. What is the best way to get data from it?
1. Rewrite the JSON file as follows:
and include it as a JS file in . Then work as with a regular JS object. 2. Each time make an AJAX request to the JSON file and work with the response.
var data = {JSON...};
<head>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question