The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Defer parsing of JavaScript (2 posts)

  1. Asvinours
    Posted 4 years ago #

    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.

  2. PavelS
    Posted 4 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