Data URL instead of a XMLHTTPRequest, how?
Help mentions this as a way to access local resources loaded in downloaded/offline experiences. Does anyone know what this method looks like in practice? I've spent a few hours Googleing and trying stuff without success. I have been using XMLHTTPRequest to load a local file of JSON data, but as noted it doens't work offline.
So if i have a local file at "app/resources/Uploaded/myfile.json" how would load this to a variable using the "Data URL" method? I can say that below does not work.
myData= JSON.parse("data:,/app/resources/Uploaded/myfile.json")
// or
myData = JSON.parse("data:/app/resources/Uploaded/myfile.json")

