From bea33c7cacea89f44a92e60827cf6f046d41f63e Mon Sep 17 00:00:00 2001 From: JK Date: Fri, 5 Jun 2026 15:15:06 +0200 Subject: [PATCH] feat(tikz): decouple TikZJax loader and assets for fully offline, worker-based rendering - Extracted 214 TeX libraries, packages, core formats, and WebAssembly binaries from monolithic `tikzjax.js` into local `tikzjax-assets/` folder. - Replaced monolithic 7MB runtime JS asset download from GitHub with a lightweight loader and Web Worker compilation engine. - Implemented `tikzjax.worker.ts` to execute the TeX engine in a background Web Worker thread using modern Web standard APIs, preventing main-thread UI locks. - Implemented `TikzJaxLoader` to parse code block preambles, lazily load/decompress assets synchronously via native `zlib`, cache core buffers in memory, and compile diagrams via the worker. - Refactored `renderer.ts` and `live-preview-overlay.ts` to utilize the async loader, removing DOM-polluting `