WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: W3 Total Cache] list of javascript that can be moved to footer? (7 posts)

  1. ddeconin
    Member
    Posted 2 years ago #

    Any tips on javascript that still works hen moved to the footer? I have not found any yet...nor any pages on the net with such a list....

  2. tgeorge
    Member
    Posted 2 years ago #

    Your choice of words is really bizarre. JavaScript is a programming language. You want to "move" a programming language? I suppose you want to move some JavaScript code, but what does "list of JavaScript" mean? Finally, how is this related to W3 Total Cache?

  3. MyrddinDE
    Member
    Posted 2 years ago #

    I suppose he wants to know which common used java scripts can be moved to the footer without breaking functionality, e.g. google analytics, etc

  4. ddeconin
    Member
    Posted 2 years ago #

    Indeed, in the w3tc minify settings you can choose if a .js (Javascript) is embed in <head> (bl,nbl), embed after <body> (bl, nbl) and embed before </body> (bl, nbl).
    I was googling for pages that had a list of possible settings for various plugins, but didn't find any.
    I guess having a list in this forum would avoid a lot of trial and error.

  5. savvyharry
    Member
    Posted 2 years ago #

    dealing with this right now...

    I keep getting: "Unfortunately an error occurred while creating the minify cache. Please check your settings to ensure your site is working as intended.

    Thanks for using W3 Total Cache."

    The error came about after adding two wp-includes js embed in <head> blocking

    /wp-includes/js/l10n.js?ver=20101110
    /wp-includes/js/jquery/jquery.js?ver=1.6.1

    any advice on wp-includes js files?

  6. cyonite
    Member
    Posted 2 years ago #

    ddeconin: That is combine settings. You tell the plugin if it should minify combine scripts that are located in those places.

  7. Frederick Townes
    Member
    Posted 2 years ago #

    @savvyharry, you can ignore that error it's a bug that creates false positives. wp-includes can normally be minified, but that depends on the other scripts in your page. As for the general question about best practices, loading files asynchronously or at the bottom of the page is *generally* best. But that's a very rough guideline.

Topic Closed

This topic has been closed to new replies.

About this Topic