WordPress.org

Ready to get started?Download WordPress

Forums

UK Cookie Consent
Move JS to footer (1 post)

  1. Andreas Larsen
    Member
    Posted 11 months 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/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 11 months ago by Andreas Larsen
  • This topic is not resolved
  • WordPress version: 3.6

Tags

No tags yet.