Title: Invalid JS &amp; CSS insertion
Last modified: October 11, 2021

---

# Invalid JS & CSS insertion

 *  Resolved [James Robinson](https://wordpress.org/support/users/imaginarymedia/)
 * (@imaginarymedia)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/invalid-js-css-insertion/)
 * There are a couple of validation errors caused by the plugin.
 * The plugin is inserting an inline style in the body element. (src/Php/Main.php:
   157)
 * And attempting to asynchronously load inline JS with a redundant type attribute.(
   DelayedScript/DelayedScript.php:28)
 * Both are invalid.
 * The inline CSS should be moved to a wp_head action.
 * AFAIK you can’t async inline JS, although it might be possible to include the
   script as a data value in the src attribute. Seems unnecessary, anyway, given
   the timeout and the eventlisteners.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [hcaptcha](https://wordpress.org/support/users/hcaptcha/)
 * (@hcaptcha)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/invalid-js-css-insertion/#post-14960479)
 * Hi there, please open an issue (or ideally PR :)) over at [https://github.com/hCaptcha/hcaptcha-wordpress-plugin/issues](https://github.com/hCaptcha/hcaptcha-wordpress-plugin/issues)
 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/invalid-js-css-insertion/#post-14963462)
 * [@imaginarymedia](https://wordpress.org/support/users/imaginarymedia/) Fixes 
   will be published in v1.13.1 in a few days.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Invalid JS & CSS insertion’ is closed to new replies.

 * ![](https://ps.w.org/hcaptcha-for-forms-and-more/assets/icon.svg?rev=3026321)
 * [hCaptcha for WP](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/)
 * [Active Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/invalid-js-css-insertion/#post-14963462)
 * Status: resolved