[wp-trac] [WordPress Trac] #32793: Combine jQuery and jQuery migrate to reduce HTTP requests

WordPress Trac noreply at wordpress.org
Fri Jun 26 00:41:03 UTC 2015


#32793: Combine jQuery and jQuery migrate to reduce HTTP requests
-------------------------------------+-----------------------------
 Reporter:  peterwilsoncc            |      Owner:
     Type:  enhancement              |     Status:  new
 Priority:  normal                   |  Milestone:  Awaiting Review
Component:  External Libraries       |    Version:  3.6
 Severity:  normal                   |   Keywords:
  Focuses:  javascript, performance  |
-------------------------------------+-----------------------------
 Combining the jQuery and jQuery migrate scripts will improve performance
 by reducing HTTP requests. As jQuery scripts are loaded in the header,
 this will reduce the period of render blocking.

 In the attached patch
 * the files load separately when `SCRIPT_DEBUG` is enabled
 * `jquery-core` and `jquery-migrate` effectively become aliases of
 `jquery`
 * aliases are queued to footer to allow theme/plugin devs to move jQuery
 to footer if they wish

 Cons/risks
 * plugins/themes replacing jquery with a CDN version could remove migrate
 * drama and pushback from devs who keep their code free of deprecated
 jQuery functions

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


More information about the wp-trac mailing list