How to add the defer attribute to a javascript script using Woody Snippets

While the JavaScript snippet does not allow for dedicated attributes, like defer, for example, to obtain the same result, you can create a new Universal snippet, in which you can add the JS script using the defer attribute, or any other attributes of your choice.

  1. Navigate to your WordPress Dashboard > Woody Snippets > Add snippet
  2. Create a new Universal snippet

  1. In the Universal snippet, add your script tag with the defer attribute.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us