Title: Replace jQuery in login-script.php
Last modified: January 25, 2026

---

# Replace jQuery in login-script.php

 *  Resolved [barteke22](https://wordpress.org/support/users/barteke22/)
 * (@barteke22)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/replace-jquery-in-login-script-php/)
 * Hi. This isn’t anything critical, but it would be nice if the core of the plugin
   didn’t require jQuery.
 * jQuery is a big first byte loading bottleneck, and most sites do not need it 
   until properly logged in (especially on the login page).
 *  None of the other portions of the base plugin appear to need it as far as tested.
   Except the small portion at the bottom of login-script.php, which can easily 
   be replaced with regular js.
 *     ```wp-block-code
       if(jQuery('.login-container').length==0) {    jQuery('.language-switcher').appendTo(jQuery('#login'));}else{     jQuery('.language-switcher').appendTo(jQuery('.login-container'));}
       ```
   
 * javascript:
 *     ```wp-block-code
       const loginContainer = document.querySelector('.login-container');const languageSwitcher = document.querySelector('.language-switcher');    if (!loginContainer) {    const login = document.querySelector('#login');    if (loginContainer) login.appendChild(languageSwitcher);} else {    loginContainer.appendChild(languageSwitcher);}
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Abdul Wahab](https://wordpress.org/support/users/abdulwahab610/)
 * (@abdulwahab610)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/replace-jquery-in-login-script-php/#post-18798360)
 * Hey, [@barteke22](https://wordpress.org/support/users/barteke22/)
 * Thanks for the suggestion, we really appreciate it. We’ll review this internally
   and take it into consideration.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freplace-jquery-in-login-script-php%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/loginpress/assets/icon-256x256.png?rev=3005027)
 * [LoginPress | wp-login Custom Login Page Customizer](https://wordpress.org/plugins/loginpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loginpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loginpress/)
 * [Active Topics](https://wordpress.org/support/plugin/loginpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loginpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loginpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Abdul Wahab](https://wordpress.org/support/users/abdulwahab610/)
 * Last activity: [4 months, 1 week ago](https://wordpress.org/support/topic/replace-jquery-in-login-script-php/#post-18798360)
 * Status: resolved