This commit is contained in:
Dan Harrin
2023-07-29 12:16:20 +01:00
parent d2ebdb4792
commit 7b4bd241a4
2 changed files with 20 additions and 0 deletions
@@ -134,3 +134,13 @@ Alternatively, you may disable polling altogether:
```php
protected static ?string $pollingInterval = null;
```
## Disabling lazy loading
By default, widgets are lazy loaded. This means that they will only be loaded when they are visible on the page.
To disable this behaviour, you may override the `$isLazy` property on the widget class:
```php
protected static bool $isLazy = true;
```
+10
View File
@@ -240,3 +240,13 @@ public function getDescription(): ?string
return 'The number of blog posts published per month.';
}
```
## Disabling lazy loading
By default, widgets are lazy loaded. This means that they will only be loaded when they are visible on the page.
To disable this behaviour, you may override the `$isLazy` property on the widget class:
```php
protected static bool $isLazy = true;
```