I can confirm that wp_enqueue_script also can be called from themes. I am using it to call jQuery library. In fact you can even enqueue your own JavaScript library to it will be added to the header.
Now when can we expect to get the wp_enqueue_css api?
[…] activated, the plugin will “listen” to all of the scripts added (via the WordPress wp_enqueue_script function) to your pages header and automagically switch the locally hosted library to a Google hosted one. […]
An avid fan of business, education, technology and finance. I lead a lean, highly focussed and capable team of Java Back End developers and Front End developers through a maze of complex software wizardry to fulfill the web maintenance needs of a large chemical manufacturer. As per Myers-Briggs Personality Types, I am an ESTJ. I pride in a project completed on time and according to plan. My hobbies include all kinds of technology, anything that I can taste and anything that goes fast or flies in the air. I like to read business books and comics in my spare time.
Well said !
Wow, that is a great explanation of wp_enqueue_script. Well done.
I can confirm that wp_enqueue_script also can be called from themes. I am using it to call jQuery library. In fact you can even enqueue your own JavaScript library to it will be added to the header.
Now when can we expect to get the wp_enqueue_css api?
Azizur,
Seriously, that would be neat. Something I’d love to see.
The best place, in my opinion, is to use wp_enqueue_script in the “functions.php” to load JavaScript files for themes.