> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# onPageStart

APISummary
Called when page start loading.

## Syntax

### Android

```java
public void onPageStart(@Nullable String url);
```

#### Parameters

- `url`: The page URL

### iOS

```objc
- (void)lynxViewDidStartLoading:(LynxView *)view;
```

#### Parameters

- `view`: The LynxView instance.

:::note

- This method is called once for each content loading request.

:::

### Harmony

```typescript
public onPageStarted(lynxContext: LynxContext, pipelineInfo: LynxPipelineInfo): void;
```

#### Parameters

- `lynxContext`: The LynxContext which has started loading
- `pipelineInfo`: The information about the pixel pipeline

:::note

- This method will be executed before the main process of lynx so do not execute overlycomplex logic in this method.

:::

### Desktop (C++)

```cpp
class YourViewClient : public lynx::pub::LynxViewClient {
 public:
  void OnPageStart(const char* url) override;
};
```

#### Parameters

- `url`: The page URL.

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.lynx-view-client.on-page-start`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/lynx-view-client/on-page-start.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| on-page-start | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (3.7) | Yes (3.7) | No |

**`on-page-start`**

Called when page start loading.

**Specifications:**

