[wp-trac] [WordPress Trac] #57157: Reduce external resources for wp-login.php

WordPress Trac noreply at wordpress.org
Sun Nov 20 05:18:42 UTC 2022


#57157: Reduce external resources for wp-login.php
------------------------------------------+-----------------------------
 Reporter:  sabernhardt                   |      Owner:  (none)
     Type:  enhancement                   |     Status:  new
 Priority:  normal                        |  Milestone:  Awaiting Review
Component:  Login and Registration        |    Version:
 Severity:  normal                        |   Keywords:
  Focuses:  javascript, css, performance  |
------------------------------------------+-----------------------------
 The login page is quite heavy.

 - The `user-profile` script adds `zxcvbn`, `wp-util`, jQuery, etc. (about
 1MB together). When not resetting the password, a small inline script
 might be used.
 - The Dashicons stylesheet (about 60kB) is rather large for 3 icons if
 they could be inline SVG instead.
 - Because the login page does not include `locale-` body classes,
 `l10n.css` only change the body font for RTL languages. If login.css sets
 that font instead, the stylesheet could also specify 'Arial Hebrew' with
 `body.rtl:lang(he-IL)`.

 However, the separate `buttons` and `forms` stylesheets could remain as
 dependencies.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57157>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list