• Resolved James Robinson

    (@imaginarymedia)


    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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Invalid JS & CSS insertion’ is closed to new replies.