Commit Graph

4 Commits

Author SHA1 Message Date
Enrico Ros b77bae8ff2 Roll PDFJS 2023-06-13 07:01:06 -07:00
Enrico Ros a132cab3bd Update worker 2023-05-09 00:44:33 -07:00
Enrico Ros 5a396d775c Roll packages 2023-04-04 15:28:12 -07:00
Enrico Ros 23a3185696 Load PDFs on drag/drop, min-worker, dynamic import
Cleaned up the code a bit (thx gpt4), with:
 - dynamic module load: JS is chunked up and deferred to PDF loading,
   which improves all the sessions where PDFs are not loaded
 - unified path for drag/drop and 'load file' (shall call it "magic drop"
   so PDFs are text'ified upon drag/dop as well
 - fixed "not being able to load the same doc twice" (thx gpt4)
 - using minified worker, as it's loaded dynamically, we save ~50% bandwidth
2023-04-03 02:57:02 -07:00