---
page_title: Prefetch
product: EC Headless
platform: Capacitor
page_source: https://juspay.io/in/docs/ec-headless/capacitor/resources/prefetch
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/ec-headless/llms.txt
---


# 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:

#### Capacitor Code Snippet:

```capacitor
{"success":false,"message":"Failed to fetch snippet"}
```

### Payload:

#### JSON:
```json
{"success":false,"message":"Failed to fetch snippet"}
```



---

## See Also

- [Test Resources](https://juspay.io/in/docs/ec-headless/capacitor/resources/test-resources)
- [Terminate](https://juspay.io/in/docs/ec-headless/capacitor/resources/terminate)
