[wp-hackers] Proper handling of jquery loading.
Paul Menard
paul at codehooligans.com
Fri Oct 21 18:24:26 UTC 2011
I would say read the Codex that is what it is for
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
http://codex.wordpress.org/Function_Reference/wp_register_script
P-
On Oct 21, 2011, at 2:22 PM, Claude Needham wrote:
> I am trying to use the direct embed of a mailchimp form on my website.
> The reason for not using either of the two mailchimp plugins that are
> available is I need to include hidden fields in the form.
>
> When I embed the code (using html tab or super simple shortcode) the
> form does not work as expected.
>
> I figured maybe there was a javascript conflict.
>
> Did a search found an article by Chris Coyier.
> http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/
>
> In the article he made the recommendation to put a
> wp_enqueue_script("jquery") before wp_head
>
> <?php wp_enqueue_script("jquery"); ?>
> <?php wp_head(); ?>
>
> Thing is this was over 2 years ago. Seems like TwentyTen and other
> themes would be either following something like this. Or, more likely,
> the wp core has been modified to handle these issues.
>
> What is the best practice for loading jquery files?
>
> Regards,
> Claude Needham
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list