WordPress.org

Ready to get started?Download WordPress

Forums

Defer parsing of JavaScript (2 posts)

  1. Asvinours
    Member
    Posted 2 years ago #

    Hi,
    I'm currently in a phase of optimization of my website. I have read the whole google's documentation, and applied the recommendations.
    But for one, 'Defer parsing of JavaScript', I have not found a way to apply it with wp_enqueue_script.
    So, this is my question: Is that possible to add an async attribute to script tags with wp_enqueue_script ?

    Thank you.
    Fabrice,

  2. PavelS
    Member
    Posted 2 years ago #

    +1, there is no any parameters for Defer and Async for enqueue JavaScript files.

Topic Closed

This topic has been closed to new replies.

About this Topic