---
page_source: https://juspay.io/in/docs/ec-headless/cordova/resources/prefetch
page_title: Prefetch
---


# Prefetch



HyperSDK uses a js engine to run critical business logic which enables seamless integrations and faster updates to the SDK.

**Prefetch API**  gets the latest business logic and keeps the SDK experience uniform for all users. This API can be triggered any number of times and only updates assets for critical requirements.



## Sample Code Snippets:
### Integration Sample:

#### Prefetch Code Snippet:

```prefetch
hyperSDKRef.preFetch(JSON.stringify(payload))
```

### Payload:

#### JSON:
```json
var payload = {
    "service" : "in.juspay.hyperapi",
    "betaAssets" : true,
    "payload" : {
        "clientId" : "<client_id>"
    }
}
```

