WordPress.org

Ready to get started?Download WordPress

Forums

UK Cookie Consent
Move JS to footer (1 post)

  1. Andreas Larsen
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.