Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.
The idea is to use JavaScript to show the progress of file download on the page loaded in Chromium. Everything works fine, but Chromium freezes while file is loaded, and only draws progress after the download is complete. Is there any analogue of Application.ProcessMessages for Chromium?
Create a thread and use TIdHTTP in that thread. In addition to that I would also suggest that you only update the progress bar once every second or 500ms.
TChromium can also be used to download files with TChromium.StartDownload and it will download the file in the background without blocking the user interface.
The MiniBrowser demo has all the code to download files. It uses the TChromium.OnDownloadUpdated event to show the download progress information in the status bar.