[wp-trac] [WordPress Trac] #27582: MCE View: CPU spike when using [video] embed for an MP4 in Chrome

WordPress Trac noreply at wordpress.org
Sat Mar 29 20:06:20 UTC 2014


#27582: MCE View: CPU spike when using [video] embed for an MP4 in Chrome
--------------------------+------------------------------
 Reporter:  jeremyfelt    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript
--------------------------+------------------------------

Comment (by jeremyfelt):

 It seems like the initial page load results in two MediaElement view
 requests.

 In the first request, a negative rail width (-1896) is set and the
 position of the fullscreen button is detected relative to the top of the
 document. This results in a top position of something like 719.12345. This
 results in an endless loop as the position never changes.

 If I detect this first request (based on its negative rail width?) and
 skip it by returning without completing `setControlsSize`, a second
 request is made. In this second request, the rail width is normal (312),
 the position of the fullscreen button is detected with a top position of
 0, and everything works properly.

 This same successful request is made when switching between Text and
 Visual.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27582#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list