Okay
  Public Ticket #725635
JavaScript used for the footer
Closed

Comments

  • Gerdski started the conversation

    Hello,

    I use the Thine Theme for WordPress, and I want to optimize it for speed.

    I tried to do this with a plugin that moves all JavaScript from the header to the footer, except jQuery (because if I also move jQuery, the Header will be gone). 

    Doing this I noticed that everything works fine...but the Footer is completely gone! So, there must be another script (or more) that need(s) to stay in the header.

    Can you tell me which scripts are needed for the footer to work?

    Thanks!

  •  295
    Paul replied

    Hi there!

    Actually there is no specific script for loading the footer. All the theme related JS code are in the "/js/thine.js" file. I think you might need to make the Modernizr script on the header as well. See if this helps.

    Regards,
    Paul

  • Gerdski replied

    Hey!

    I found the error. It had nothing to do with JavaScripts...the Footer was just empty! (nobody knows why)

    Thank you very much for your help!

    So, if anyone wants speed up his Thine theme (or others), I do recommend this plugin here:
    http://wordpress.org/plugins/scripts-to-footerphp/
    and tick the box "Keep jQuery in the Header" (otherwise the header is gone)

  •  295
    Paul replied

    You're welcome! Really glad to hear that you have figured it out and thank you for your sharing! ;)

  • Gerdski replied

    I'm happy to start or join a discussion about speed issues :-)