Subpackage Loading

You might say

Can this mini program open its home screen before downloading the rarely used support pages?

A mechanism that separates mini program code into a main package and subpackages loaded when neededA shop’s home screen can live in the main package while its return and repair pages live in a support subpackage. Entering support can then load that package. Downloading page code is separate from fetching order data.
Subpackage

Send this to the AI Agent in your project

Ready to paste into Cursor, Claude Code, or Codex
Structured AI Agent prompt

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.

Want your Agent to translate plain-language UI ideas automatically?Install free VibeHub Skill →
Further reading