Canva Web Editor ↔️ Canva Embed API: Memory Leak Behavior During Repeated Image Exports
0 reputation · 14 Aug 2025, 15:02 UTC
Goal: Determine whether Canva’s Embed API retains font subset caches across sessions when exporting designs that contain embedded SVG fonts as PDF, and how this decision influences JavaScript heap growth during repeated export cycles.
Constraints: The memory‑leak fix released in v2.41 applies to PNG/JPEG outputs but not to PDF exports with embedded SVG fonts; community discussions note an unresolved design choice about persisting font caches for faster re‑exports, and heap measurements vary with browser version, device memory, and design complexity.
- Does Canva intend to keep font subset caches alive between sessions for PDF exports with embedded SVG fonts?
- If caches are retained, what is the expected increase in JS heap size per export cycle under typical usage?
- Should developers manually clear or disable these caches when using the Embed API for repeated PDF exports?