WordPress.org

Ready to get started?Download WordPress

Forums

Bad Behavior Javascript loading (1 post)

  1. jp2112
    Member
    Posted 4 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Topic