[wp-trac] [WordPress Trac] #23875: Twenty Thirteen: improve jQuery code: remove deprecated functions, namespace events, and more (was: Twenty Thirteen: Replace deprecated jQuery code)

WordPress Trac noreply at wordpress.org
Tue Apr 16 18:02:18 UTC 2013


#23875: Twenty Thirteen: improve jQuery code: remove deprecated functions,
namespace events, and more
-------------------------------------+--------------------
 Reporter:  obenland                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.6
Component:  Bundled Theme            |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |
-------------------------------------+--------------------
Changes (by lancewillett):

 * keywords:  has-patch => has-patch needs-refresh
 * priority:  low => normal


Old description:

> The syntax `$(document).on("ready", handler)` is deprecated as of jQuery
> 1.8.
> It behaves similarly to the ready method but if the ready event has
> already fired and you try to `.on("ready")` the bound handler will not be
> executed.
>
> See: http://api.jquery.com/ready/

New description:

 1. The syntax `$(document).on("ready", handler)` is deprecated as of
 jQuery 1.8.
 It behaves similarly to the ready method but if the ready event has
 already fired and you try to `.on("ready")` the bound handler will not be
 executed.  See: http://api.jquery.com/ready/

 2. We should namespace events: http://docs.jquery.com/Namespaced_Events

 3. The scroll event should be throttled for performance.

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23875#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list