> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talview.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Loader Script

The Loader Script is the easiest way to initialize the Proview SDK. The Loader Script also automatically keeps your Proview SDK up to date and offers configuration for different Proview proctoring features.

The Loader Script is the easiest way to initialize the SDK. The Loader Script also automatically keeps your SDK up to date.

### Using the loader

To use the loader, Copy the script tag provided in the below section and include it as the last script on your page.

```jsx theme={null}
<script
  src="https://sdk.tlv.cx/session/init.js"
  crossorigin="anonymous">
</script>
```

While the Loader Script will load the Proview script, but configuration has to be set by your application according to your needs. using the init function you can initialize the SDK.

<div className="tip">
  💡 The proviewOnLoad hook get attached to window when the loader script loaded successfully into the page.
</div>

```jsx theme={null}
<script>
  // Configure proviewOnLoad before adding the Loader Script
  window.proviewOnLoad = function () {
    Proview.init({
      // Configurations as options
    });
  };
</script>

<script
  src="https://sdk.tlv.cx/session/init.js" async
  crossorigin="anonymous">
</script>
```
