Research on Multithreaded Download and Local File Operation of HTML5 Browser
暂无分享,去创建一个
Traditional browsers are inefficient in single-threaded download and rely too heavily on target servers. In order to improve download speed and stability, multithreaded download tools are urgently needed. However, current multithreaded download tools, such as Thunder and Free Download Manager, cannot meet the convenience and versatility of browser download process. Aiming at the above problems, this paper proposes a method that use Web Workers to implement multithreaded download of browser-side. Multiple sub-threads are created by the main thread of the browser, and these sub-threads request file data from the server at the same time, thereby improving file download efficiency and download speed. This article demonstrates the feasibility of this technique and verifies the integrity of the downloaded file using the File System API provided by HTML5.
[1] Adam Freeman. The Definitive Guide to HTML5 , 2011 .