[wp-trac] [WordPress Trac] #34444: Move print_embed_scripts to run on the embed_footer action

WordPress Trac noreply at wordpress.org
Mon Oct 26 02:10:28 UTC 2015


#34444: Move print_embed_scripts to run on the embed_footer action
---------------------------+----------------------------------------
 Reporter:  peterwilsoncc  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Embeds         |    Version:  trunk
 Severity:  normal         |   Keywords:  needs-patch good-first-bug
  Focuses:  javascript     |
---------------------------+----------------------------------------
 `print_embed_scripts` currently runs on the `embed_head` action and prints
 the inline JavaScript in the HTML header of the embed template.

 As the JavaScript runs on the `DOMContentLoaded` event, it can be moved
 the the HTML footer and run on the `embed_footer` action.

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


More information about the wp-trac mailing list