preload()

preload()​ is called by the merchant application to preload WebApp page and KYC page resources, accelerating subsequent payment or card-binding processes.

Notes:

  • This method is static and can be called without creating an instance.
  • It is recommended to call them early before creating payment or vaulting sessions to speed up the rendering of the checkout page.

Method signature

copy
static Future<void> preload()

Parameters

This method has no parameters.

Return value

This method returns a ​Future<void>​ value to represent the asynchronous execution state of the preloading operation. After preloading is complete, ​Future​ ends but does not return the specific result.