JavaScript in Footer

  1. hollywoodgrind


    Currently some of the built-in JavaScript for WordPress appears in the <head></head> location. Please move the JavaScript to just above the </body> tag to improve page rendering speed.

    Is it possible for WordPress to have an option to minify it's own built-in JavaScript?

    Posted: 8 years ago #
  2. Ryan Boren
    WordPress Dev

    Almost all JavaScript is minified and loaded in the footer. Some things must be loaded in the head, however, and some third party JS isn't minified. Any remaining JS that can be minified and moved to the footer will be.

    Posted: 8 years ago #
  3. Andrew Ozz
    WordPress Dev

    All default JavaScript is currently minified except few scripts that are not used but included for backwards compatibility.

    Only two scripts load in the header, jQuery and utils.js as they might be needed while loading the rest of the HTML. All the rest load in the footer as suggested here.

    Posted: 8 years ago #
  4. mario oyunu

    Yes.. Any remaining JS that can be minified and moved to the footer will be.

    Posted: 8 years ago #
  5. marc76

    late but thanks for answers!

    Posted: 7 years ago #
  6. binfo2010

    Good to know....but not all JS can be in footer, as suggested.

    Posted: 7 years ago #
  7. droy1

    Hello, don't know if it's the right place but after 2 days of struggling with this, I don't know where to turn.
    I have this javascript code in my theme footer.php and this is a portion of it:
    <Script Language='Javascript'>

    Is there anyway to decode it?

    Thanking you in advance.


    Posted: 7 years ago #
  8. mrmist

    droy1 - it's not - use the forum link for such questions.

    Closing this as an implemented idea.

    Posted: 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    5 Votes
  • Status

    This idea has been implemented