WordPress.org

Support

Support » Plugins and Hacks » Move JS to footer

Move JS to footer

  • Andreas Larsen
    Member

    @andreas-larsen

    Line 277 in the php should be:

    add_action ( ‘wp_footer’, ‘catapult_add_cookie_js’ );

    and not:

    add_action ( ‘wp_head’, ‘catapult_add_cookie_js’ );

    No reason to load the js in the header and slow down page load – works perfectly fine in the footer (as far as I’ve tested).

    Great plugin!

    http://wordpress.org/plugins/uk-cookie-consent/

  • The topic ‘Move JS to footer’ is closed to new replies.