# Lazy-Loading Facade **Domain:** Library Design / Packaging **Doc Type:** Canonical Concept Node **Maturity:** Artifact-Derived **Related:** [[wiki/Generated Packaging|Generated Packaging]], [[wiki/Single-File Portability|Single-File Portability]], [[wiki/Canonical Capability Name|Canonical Capability Name]] --- ## Definition **A lazy-loading façade presents a stable callable namespace while loading an implementation only when its capability is first used.** Callers do not need to know which module file contains the implementation, and unused capabilities do not require eager initialization. ## Shazam Context Shazam's generator created façade routines for hundreds of Perl capabilities. Each wrapper required the relevant one-function module on demand and forwarded the original arguments. The façade was generated from the module corpus rather than maintained as a second hand-edited truth. ## Key Insight **The façade stabilizes consumption while lazy loading preserves modularity underneath it.** ## See Also [[projects/Shazam - A Portable Perl Capability Library|Shazam]], [[wiki/Generated Combined Distribution|Generated Combined Distribution]], [[wiki/Generated Packaging|Generated Packaging]], [[wiki/Technical Terms|Technical Terms]]