So I need to load a file from disk somehow, and access its contents.. Sort of like how
<link rel="stylesheet">
works. Is there a way to do this? XHR requires a web server.. and using something like the above doesn’t let me access the contents of the file..
Assuming that your page is also on the local disk, you should be able to use XHR with a
file://URL.