Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   How to move javascript to footer? (http://forum.bytesforall.com/showthread.php?t=17019)

Viktor Garbar Mar 13, 2012 02:25 PM

How to move javascript to footer?
 
I refer to theme javascript. Is it possible to move it to footer?

I moved all scripts to footer using plugin however it lead to an error with jQuery

Uncaught ReferenceError: jQuery is not defined in /?bfa_ata_file=js:7

Theme javascript is at page header and jQuery is in footer.

You can see an error here for example http://maidan.org.ua/2012/02/tsenzur...idkladajetsya/ (page is in Ukrainian)

It breaks functioning on of plugins using jQuery.

I'd like to move all theme javascript to footer, but I am not yet that familiar with WP codex to do that myself and seeking your advice.

Since moving javascript to footer is general recomendation for speeding up pages maybe you are considering such possibility as well?

Thank you
Viktor

juggledad Mar 13, 2012 03:04 PM

You can make the theme's jscript external - see ato->Configure CSS & JS options

Viktor Garbar Mar 13, 2012 03:09 PM

I did make them external. But how to move them to footer?

Plugin "javascript to footer" does not process them for whatever reason. Plugin author writes for example this http://www.prelovac.com/vladimir/bes...rdpress-plugin which maybe an explanation why.

juggledad Mar 13, 2012 03:25 PM

I've added this as a 'Request For Enhancement' (RFE) for the developer to take a look at.

Viktor Garbar Mar 13, 2012 03:26 PM

Thank you!!! :)


All times are GMT -6. The time now is 01:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.