jQuery loading on the front end, bug?
-
Just notice that Software License Manager Loads, it’s jQuery on the front end, Is there a need for the jQuery to be loaded on the front end for the plugin to work? or is it a mini bug?
(noticed it because it was render blocking the rendering of the website until jQuery loads)/// Currently it's
function loadscripts() {
// Load all common scripts and styles only
wp_enqueue_script('jquery'); // Loads jQuery on the front end
// Load all admin side scripts and styles only
if (is_admin()) {
wp_enqueue_script('jquery-ui-datepicker');
wp_enqueue_script('wplm-custom-admin-js'...);
...
...
}
}
/// Shouldn't it be?
function loadscripts() {
if (is_admin()) {
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-datepicker');
wp_enqueue_script('wplm-custom-admin-js'...);
...
...
}
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.