@lottiefiles/dotlottie-web 0.50.2 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,6 +16,7 @@
16
16
  * [What is dotLottie?](#what-is-dotlottie)
17
17
  * [Documentation](#documentation)
18
18
  * [Supported Platforms](#supported-platforms)
19
+ * [Browser Requirements](#browser-requirements)
19
20
  * [Live Examples](#live-examples)
20
21
  * [Contributing](#contributing)
21
22
  * [Issues](#issues)
@@ -38,6 +39,39 @@ To get started with `@lottiefiles/dotlottie-web`, follow the [documentation here
38
39
 
39
40
  `@lottiefiles/dotlottie-web` is an isomorphic library designed to work in both browser and Node.js environments. It supports Node.js version 18 and higher, as well as all major web browsers.
40
41
 
42
+ ### Browser Requirements
43
+
44
+ The library requires modern browser features for optimal performance. The following browser APIs are essential:
45
+
46
+ | Feature | Required | Can I Use |
47
+ | ------------------- | ---------- | -------------------------------------------------------------- |
48
+ | **WebAssembly** | ✅ Yes | [WebAssembly support](https://caniuse.com/wasm) |
49
+ | **Canvas 2D API** | ✅ Yes | [Canvas 2D support](https://caniuse.com/canvas) |
50
+ | **Fetch API** | ✅ Yes | [Fetch API support](https://caniuse.com/fetch) |
51
+ | **Web Workers** | Optional\* | [Web Workers support](https://caniuse.com/webworkers) |
52
+ | **OffscreenCanvas** | Optional\* | [OffscreenCanvas support](https://caniuse.com/offscreencanvas) |
53
+
54
+ \*Optional features enhance performance but aren't required for basic functionality.
55
+
56
+ #### Minimum Browser Versions
57
+
58
+ Based on WebAssembly support requirements:
59
+
60
+ * **Chrome**: 57+ (March 2017)
61
+ * **Firefox**: 52+ (March 2017)
62
+ * **Safari**: 11+ (September 2017)
63
+ * **Edge**: 16+ (October 2017)
64
+ * **Opera**: 44+ (March 2017)
65
+ * **iOS Safari**: 11+ (September 2017)
66
+ * **Android Browser**: 81+ (February 2020)
67
+
68
+ #### Enhanced Features
69
+
70
+ * **Web Workers**: Enable background processing for better performance
71
+ * **OffscreenCanvas**: Allow rendering on worker threads for improved responsiveness
72
+
73
+ For legacy browser support, consider using WebAssembly polyfills, though performance may be significantly reduced.
74
+
41
75
  ## Live Examples
42
76
 
43
77
  Explore these CodePen examples to see `@lottiefiles/dotlottie-web` in action:
Binary file