Plugin Javascript trying to load before jQuery
-
I saw one of the issues you resolved in previous version by making this plugin JQuery dependent however I am not able to see that on current version.
Version 1.8.2
No Other plugins installed and I can see you have following//Enqueue jquery function catapult_cookie_jquery() { wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'uk-cookie-consent-js', plugins_url ( 'js/uk-cookie-consent-js.js', __FILE__ ), array ( 'jquery' ), '1.8', true ); } add_action('wp_enqueue_scripts', 'catapult_cookie_jquery');
In our theme we have
wp_register_script('jquery', get_template_directory_uri().'/js/jquery-2.1.4.min.js', null, "2.1.4", true);
The generated Script is loaded before JQuery which causes a Javascript hickup and no show for cookie.
What do you suggest.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Plugin Javascript trying to load before jQuery’ is closed to new replies.