Skip to content

Commit

Permalink
perf: 毋须再加载jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
KotoriK committed Oct 29, 2021
1 parent 7f0c31f commit 8bf5ef8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,6 @@ function custom_login()
//echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('template_directory') . '/inc/login.css" />'."\n";
echo '<link rel="stylesheet" type="text/css" href="' . get_template_directory_uri() . '/inc/login.css?' . IRO_VERSION . '" />' . "\n";
//echo '<script type="text/javascript" src="'.get_bloginfo('template_directory').'/js/jquery.min.js"></script>'."\n";
echo '<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/jquery/jquery@3.5.0/dist/jquery.min.js"></script>' . "\n";
}

add_action('login_head', 'custom_login');
Expand Down

0 comments on commit 8bf5ef8

Please sign in to comment.