Hello-
I am a WordPress developer specializing in custom themes on a project specific basis. I've recently switched to Paul Irish's HTML5Bulletproof as the framework for my themes.
It seems modern best practice is to load jQuery at the bottom of the page for faster loading.
I'm wondering how I should integrate this into my WordPress Themes? Also, how should I be loading page-specific documentReady events (such as initializing a slideshow that only appears on the home page).
Currently, I enqueue jquery in my functions.php. In my footer.php I have a few documentReady events that are only called if(page).
- Should all of these be moved to functions.php, use
enqueue_scriptand called onif(page)? Or should thedocumentReadyevents be called within my page template files? - What about plugins that are only required on certain pages?
- Other tips?
Thank you!
[Moved to WP Advanced - you should get a better discussion there.]