[wp-trac] [WordPress Trac] #34204: Ensure WP oEmbed JavaScript runs error free

WordPress Trac noreply at wordpress.org
Thu Oct 8 00:22:01 UTC 2015


#34204: Ensure WP oEmbed JavaScript runs error free
---------------------------+-----------------------------
 Reporter:  peterwilsoncc  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Embeds         |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:  javascript     |
---------------------------+-----------------------------
 Add the following to each of the WP oEmbed JavaScript to avoid potential
 for errors:

 * `window.load` fallback for `document.DOMContentLoaded` event
 * feature detects presence of `addEventListener` and
 `document.querySelector` before attempting to run

 I'm in two minds about each of these to be honest (more so the event
 fallback), will leave to another to decide.

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


More information about the wp-trac mailing list