diff --git a/README.md b/README.md index b923c22..333d27a 100644 --- a/README.md +++ b/README.md @@ -46,3 +46,45 @@ const { response } = await hcaptcha.execute({ async: true }); | `reportapi` | String | No | `-` | See enterprise docs. | | `sentry` | Boolean | No | `-` | See enterprise docs. | | `custom` | Boolean | No | `-` | See enterprise docs. | + +### ES5 Support + +To use in ES5 environments, add the following: + +1. **polyfills.js**: This script provides polyfills for features not supported in older browsers. + +```html + +``` + +2. **index.es5.js**: This is the main script file for the `@hcaptcha/loader` package, compiled for ES5 environments. + +```html + +``` + + +Once you have included the necessary dependencies, you can use the `@hcaptcha/loader` package in your JavaScript code. + +```html + + + + + + +
+ + + +``` + +#### Important Notes + +- Ensure that the paths to the script files (`polyfills.js` and `index.es5.js`) are correct relative to your HTML file.