Using JavaScript in WordPress: throw all jQuery plugins in, or is there a way to conditionally load?

Posted by ineedtosleep on Stack Overflow See other posts from Stack Overflow or by ineedtosleep
Published on 2010-05-10T18:15:42Z Indexed on 2010/05/10 18:24 UTC
Read the original article Hit count: 284

Filed under:
|
|

I'm relatively new with WordPress theming and JavaScript, though not incompetent with either.

I'm looking to have a maximum of 10 jQuery plugins to go on the blog, but I'm wondering if there's a way to have them load only when needed, as I don't want any unnecessary loading for the users.

Something similar in something I know a little bit more of would be the conditional comments in IE <!--[IF IE]> @import ie.css <![endif]-->.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about Wordpress