Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #342489

    Hi,

    I installed the BWP Minify plugin and I was wondering which JS files you recommend to keep in the header to allow theme to run correctly?

    I’m trying to improve my websites page speed and I’m planing to move all possible JS files to the footer hoping to help page performance. Screenshot below with current settings.

    Thanks in advance!

    #343674

    Hey dwill21!

    please refer to this post: https://kriesi.at/support/topic/moving-javascript-to-footer/

    Regards,
    Andy

    #343753

    Andy,

    Thanks for the response! I read through the post you refereed me to and it indicates that it’s safe to move all js files besides jquery.js and avia.js or the theme will break. With this said, I have all js files (including avia.js) moved to the footer besides avia-compat.js and jquery.js. The theme seems to be working fine, however, do you recommend I move the avia.js file in the header and move the avia-compat.js to the footer?

    I looked at the source code for http://kriesi.at and it looks like you have the following js files located in the following locations:

    Header: jquery.js, jquery-migrate.min.js, avia-compat.js
    Footer: avia.js, shortcodes.js, jquery.prettyphoto.js, mediaelement-and-player.min.js, mediaelement.js, comment-reply.min.js, kriesi.js.

    Thanks again!

    • This reply was modified 10 years, 1 month ago by dwill21.
    #344533

    Hi!

    Standard practice is that all scripts should be loaded last but there are a few cases when you have to load a certain scripts first because the script have to insert certain page content etc. Use your best judgement.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.