Why use WeChat Mini Programs's "subcontract loading" scheme?

background introduction:

Wechat limits the code package to no more than 2 MB. The size limit is based on the startup speed of Mini Program. He hopes that users can get a "instant drive" experience when using any Mini Program model. However, the size of the 2MB also limits the expansion of Mini Program"s functions, and the development of Mini Program"s business may need a larger volume. So is there a way to maintain a good experience speed while adding Mini Program bags?

in order to resolve this contradiction, Wechat launched a "subcontract loading scheme"

principle introduction:

when Mini Program starts, the main package will be downloaded and the page within the main package will be launched by default. If the user needs to open a page within the subpackage, the client will download the corresponding subpackage and display it after the download is completed.

Mar.28,2021

1. Mini Program promotes the idea that you don't need to download, that is, you can go without downloading, so that Mini Program's package needs very little, and users will not be aware of the process of downloading when downloading.
2. If the package size is too large, there will be obvious delay in downloading together, which conflicts with the process that the user is not aware of the download, so the solution of on-demand loading can solve this problem. The number of downloads at one time is very small, and users are still not aware of the download process


because now the package size has become larger

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bca5-2c2ba.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bca5-2c2ba.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?