Sunday, 7 May 2017

Delay on file read on newly created file in node.js

App.get

[App.use][2]

fs.write

I am writing a new json file when I run my results.html page and then using express.static to make the public folder files accessible in the browser.

I have my app working but am having to click the button multiple times in order to have the updated file be written and accessed.

How should I send the JSON info to the browser without writing a file? Or not experience this lag?



via Alex Mcsmith

No comments:

Post a Comment