[wp-hackers] Including javascript in the footer

Mike Little wordpress at zed1.com
Wed May 11 17:09:48 UTC 2011

On Wed, May 11, 2011 at 17:46, Cornelius, Gregory <gcorne at bu.edu> wrote:

> On May 11, 2011, at 10:03 AM, Otto wrote:
> > Why are you still deciding on how to display the
> > page while you're halfway through displaying it? Seems silly to go to
> > all this trouble when you can easily look-ahead at the content from
> > the header.
> Sidebars are a good example of code that is not executed until the page is
> partially rendered. There is no way for a widget to know that it is going to
> be rendered before the template is partially rendered.
Look into is_active_sidebar()  and wp_get_sidebars_widgets(). You can
determine whether a a particular widget area or widget is active or not
quite early on in the processing.

Mike Little

More information about the wp-hackers mailing list