Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    this is only a file, has no protocol or server to download from... http.get("http://example.com/yourfile.html",function(){}) Commented May 1, 2018 at 4:06
  • Is there a memory leak in this answer: stackoverflow.com/a/22793628/242933? Commented Oct 29, 2018 at 13:30
  • You can add timeout like I did in http.get. The memory leak is only if the file take too long to be downloaded. Commented Nov 2, 2018 at 8:11