[wp-trac] [WordPress Trac] #12400: Add a wp_loaded hook, an ob_start hook, and an front end ajax hook
WordPress Trac
noreply at wordpress.org
Mon Dec 24 06:33:32 UTC 2012
#12400: Add a wp_loaded hook, an ob_start hook, and an front end ajax hook
-------------------------------------------------+-------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: feature request | Status: reopened
Priority: normal | Milestone: Future
Component: General | Release
Severity: normal | Version: 3.0
Keywords: has-patch dev-feedback 2nd-opinion | Resolution:
westi-likes 3.6-early |
-------------------------------------------------+-------------------------
Changes (by mfields):
* cc: michael@… (added)
Comment:
I think that a front-end Ajax would be very handy! One thing that I think
would be beneficial to have is a core-supported way of handling javascript
enqueues via javascript. Let's say we have a theme that loads full posts
via Ajax (P2 would be a good example, also any theme with built in
infinite scroll) and we also have a custom plugin installed which provides
a shortcode that relies on javascript for some of it's functionality. More
times than not this plugin will conditionally print its javascript in the
footer ([http://scribu.net/wordpress/optimal-script-loading.html like a
Jedi!]). The problem is that the current page has already loaded all of
it's scripts and the shortcode's script will never be loaded.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12400#comment:41>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list