Subpackage Loading
Can this mini program open its home screen before downloading the rarely used support pages?
Can this mini program open its home screen before downloading the rarely used support pages?
Open home → download main main includes home, returns, and repairs
Even a home-only visit initially downloads the support code in the same package.
Keep the entry and shared resources in the main package: The entry screen and resources needed across ordinary subpackages remain available from the main package. A feature’s pages and private resources can move together.
Load according to the feature being opened: Opening a page in a subpackage can trigger its download. Preloading and caching can change the actual timing; inspect download records rather than assuming it.
Inspect this WeChat mini program’s packages. Move rarely used return and repair pages into a support subpackage, keeping the entry and shared resources in the main package. Explain which pages moved. Without cached packages, verify the first home visit loads main, support loads on entry, and pages and order data still work.