Call javascript in footer the right way
-
I would like to call the javascript for my theme the right way for WordPress, and call it in my footer, so that I can get rid of the “Eliminate external render-blocking Javascript and CSS in above-the-fold content” Google PageSpeed warning messages about how slow the pages load.
There is a bit of a description of how to do this by wpgeekster at this page, but I explored the links provided there and they don’t really show how to actually implement this.
For example, what would I put into my functions.php in order to get them to load in_footer like wpgeekster suggests? I’m hoping for an example of code here, that I could modify and use for my theme.
Thank you,
JM
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Call javascript in footer the right way’ is closed to new replies.