Is there a way to load a json file along with all the other js files?
I"m wondering if there's a way to load a JSON file without having to use
AJAX with jQuery. I already have the json file in the folder, so it would
seem a bit wasteful to load the file after everything else is loaded with
AJAX. My folders look like this:
css/
font/
html/
img/
config.json
So I would like to have the data available as soon as the js is available
instead of having to use jQuery or another method to fetch it later.
Thanks in advance.
No comments:
Post a Comment