javascript - Is there a way to load a json file along with all the other js files? -


i"m wondering if there's way load json file without having use ajax jquery. have json file in folder, seem bit wasteful load file after else loaded ajax. folders this:

css/ font/ html/ img/ config.json 

so have data available js available instead of having use jquery or method fetch later. in advance. (without declaring variable no var foo = {...})

add variable assignment json file , use standard js script tag.


Comments

Popular posts from this blog

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

python - Received unregistered task using Celery with Django -