Asynchronous Javascript Loaders

I’d like to take advantage of loading my scripts while the page is loading. ie. Yepnope, head.js etc…

But I also want to be able to enqueue the script so other plugins don’t try adding their own. (a la jquery)

Does anyone have any suggestions?

Thanks in advance…

5 Answers
5

You can’t have both: you either use wp_enqueue_script() or head.js

Or, you do some wacky hacking to translate the WP script dependency tree into head.js calls.

NB: Replace head.js with whatever library you want to use.

Leave a Comment