> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/methods/load.md).

# load()

Loads the room inside the iframe. Typically you need to invoke this method only once. The `props` param is optional.

The **load()** method is the delayed form of initialization - you first call **createControl** of the SDK and then you can load the room later based on your application needs.

{% hint style="info" %}
Read more about SDK initialization process in the [DigitalSambaEmbedded class](/reference/sdk/digitalsambaembedded-class.md) section
{% endhint %}

#### InstanceProperties signature

* `frameAttributes` - list of attributes to be applied to the target iframe
* `reportErrors` - boolean, false by default. Whether to report misconfiguration or runtime errors to console

#### Sample code -> it will put a 5px red border around the iframe (using the html style attribute):

```javascript
const initOptions = {team: 'myTeamNameHere', room: 'myRoomNameHere'};
const sambaFrame = DigitalSambaEmbedded.createControl(initOptions);
//..................................................................

//Some time later load the room
sambaFrame.load({
  frameAttributes: {style: "border: 5px solid red"},
  reportErrors: false
});
```
