Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Martin Tod

    (@mpntod)

    Good idea.

    I don’t want to break the plug-in for people who don’t have wp_footer() in their template, so I’ve added it as an option on the settings page in the development version of the plug-in.

    Martin

    Thread Starter marcelstoer

    (@marcelstoer)

    Yes, I had thought about this. Adding an option is…always an option ?? However, I see cases like this always as a good opportunity to find out whether themes follow the WordPress principles or not. I accept that plugin authors have a slightly different take on this.

    Plugin Author Martin Tod

    (@mpntod)

    The WordPress default is to put the script at the top! I’m not sure why – but if you do something like:

    wp_enqueue_script('jquery');

    (which uses default settings) then JQuery will appear at the top of the page. Setting in_footer as false is a change to the default.

    It’s also what most plug-ins do (by default).

    Now, the development version of Rotating Tweets gives you a choice!

    Martin

    Thread Starter marcelstoer

    (@marcelstoer)

    Thanks for getting back to me (and thanks for the plugin).

    In all the years using WP I never found a good reason why WP should put its scripts at the top by default.

    Setting in_footer as false is a change to the default

    I guess this should read “in_footer as true…”

    It’s also what most plug-ins do (by default).

    Yes, it’s all too easy to use the default because in_footer is even optional. Why bother considering the options…
    That’s why I contact the authors of all the plugins I use and ask them to reconsider their implementation.

    Plugin Author Martin Tod

    (@mpntod)

    Good point.

    As said, the development version (and next release) will include this as an option.

    I need to update the explanatory text on the options page – and also give people options for caching – and then will be releasing the new version.

    Martin

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Move JavaScript to the bottom – please…’ is closed to new replies.