WordPress.org

Ready to get started?Download WordPress

Forums

WP Minify
Loading JavaScript Async (1 post)

  1. oncletom
    Member
    Posted 2 years ago #

    Hello,

    could we have at least 2 more options for JS performance?

    • async attribute on <script> tag
    • the ability to call the JS file asynchroneously (see below)
    <code class="javascript">var se = document.createElement("script");
    se.src = "{$wpminify-url}.js";
    document.getElementsByTagName("head")[0].appendChild(se);

    Cf. http://www.stevesouders.com/blog/2010/12/06/evolution-of-script-loading/

    Thanks :-)

    http://wordpress.org/extend/plugins/wp-minify/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by oncletom
  • This topic is not a support question
  • WordPress version: 3.3.1