Support » Plugins » Bad Behavior Javascript loading

  • A suggestion for the BB authors (great plugin BTW): can the Javascript be moved to the footer?

    I’m trying to improve page load time. But the BB Plugin puts inline Javascript directly into the header. Is this necessary for plugin operation? If not, may I suggest moving it to the footer (and putting it into a separate .js file)?

    For now I hacked bad-behavior-wordpress.php as follows:

    Change

    add_action('wp_head', 'bb2_insert_head');

    to

    add_action('wp_footer', 'bb2_insert_head');

    … but I’ll change it back if it needs to be loaded in the head.

    http://wordpress.org/extend/plugins/bad-behavior/

  • The topic ‘Bad Behavior Javascript loading’ is closed to new replies.