diff --git a/README.md b/README.md
index 37ca675..42beb74 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ import '@justinribeiro/lite-youtube';
If you want the paste-and-go version, you can simply load it via CDN:
```html
-
+
```
## Basic Usage
diff --git a/lite-youtube.ts b/lite-youtube.ts
index 1ce305a..cb87804 100644
--- a/lite-youtube.ts
+++ b/lite-youtube.ts
@@ -95,8 +95,11 @@ export class LiteYTEmbed extends HTMLElement {
return this.getAttribute('posterquality') || 'hqdefault';
}
- get posterLoading(): string {
- return this.getAttribute('posterloading') || 'lazy';
+ get posterLoading(): HTMLImageElement['loading'] {
+ return (
+ (this.getAttribute('posterloading') as HTMLImageElement['loading']) ||
+ 'lazy'
+ );
}
get params(): string {
diff --git a/package.json b/package.json
index 3b8df8b..8fb914e 100644
--- a/package.json
+++ b/package.json
@@ -25,7 +25,7 @@
"lite-youtube.js.map"
],
"license": "MIT",
- "version": "1.3.1",
+ "version": "1.3.2",
"main": "lite-youtube.js",
"module": "lite-youtube.js",
"types": "lite-youtube.d.ts",