Okay
  Public Ticket #211574
Optimizing theme
Closed

Comments

  • Jessica started the conversation

    I'm trying to optimize my website using the advie from Googe PageSpeed insights.  The main issue Google recommends I fix is "Eliminate render-blocking JavaScript and CSS in above-the-fold content"

    When I try to optimize the javascript, it breaks the slider.  Can you tell me which js I need to exclude from optimization to keep the theme functionality in place?  I'd like to optimize the remaining js. 

    Thanks!

  • Jessica replied

    Here is the list of js Google consider render-blocking.  I know not all of these are related to Salient, but just providing all of the info:

    • http://jessicareilley.com/…-includes/js/jquery/jquery.js?ver=1.11.0
    • http://jessicareilley.com/…s/jquery/jquery-migrate.min.js?ver=1.2.1
    • http://jessicareilley.com/…oto-gallery/js/bwg_frontend.js?ver=1.1.6
    • http://jessicareilley.com/…to-gallery/js/jquery.mobile.js?ver=1.1.6
    • http://jessicareilley.com/…mCustomScrollbar.concat.min.js?ver=1.1.6
    • http://jessicareilley.com/…/js/jquery.fullscreen-0.4.1.js?ver=0.4.1
    • http://jessicareilley.com/…-gallery/js/bwg_gallery_box.js?ver=1.1.6
    • http://jessicareilley.com/…themes/salient/js/modernizr.js?ver=2.6.2
    • http://jessicareilley.com/…uery/ui/jquery.ui.core.min.js?ver=1.10.4
    • http://jessicareilley.com/…ry/ui/jquery.ui.widget.min.js?ver=1.10.4
    • http://jessicareilley.com/…/ui/jquery.ui.position.min.js?ver=1.10.4
    • http://jessicareilley.com/…uery/ui/jquery.ui.menu.min.js?ver=1.10.4
    • http://jessicareilley.com/…jquery.ui.autocomplete.min.js?ver=1.10.4
    • http://jessicareilley.com/…tions/ajax-search/wpss-search-suggest.js
    • http://jessicareilley.com/…jquery.form.min.js?ver=3.50.0-2014.02.05
    • http://jessicareilley.com/…ct-form-7/includes/js/scripts.js?ver=3.8
    • http://jessicareilley.com/…themes/salient/js/superfish.js?ver=1.4.8
    • http://jessicareilley.com/…tent/themes/salient/js/easing.js?ver=1.3
    • http://jessicareilley.com/…ent/themes/salient/js/respond.js?ver=1.1
    • http://jessicareilley.com/…t/themes/salient/js/swipe.min.js?ver=1.6
    • http://jessicareilley.com/…hemes/salient/js/nicescroll.js?ver=3.5.4
    • http://jessicareilley.com/…tent/themes/salient/js/sticky.js?ver=1.0
    • http://jessicareilley.com/…themes/salient/js/prettyPhoto.js?ver=4.0
    • http://jessicareilley.com/…lider/jquery.flexslider-min.js?ver=3.7.3
    • http://jessicareilley.com/…/isotope/jquery.isotope.min.js?ver=3.7.3
    • http://jessicareilley.com/…salient/js/imagesLoaded.min.js?ver=3.1.1
    • http://jessicareilley.com/…s/salient/js/carouFredSel.min.js?ver=6.2
    • http://jessicareilley.com/…tent/themes/salient/js/appear.js?ver=1.0
    • http://jessicareilley.com/…ontent/themes/salient/js/init.js?ver=4.0
    • http://jessicareilley.com/…ntent/themes/salient/js/orbit.js?ver=1.4
    • http://jessicareilley.com/…emes/salient/js/blog-masonry.js?ver=3.15
    • http://jessicareilley.com/…cludes/js/comment-reply.min.js?ver=3.9.1
    • http://jessicareilley.com/…nt/nectar/love/js/nectar-love.js?ver=1.0
    • http://jessicareilley.com/…ediaelement-and-player.min.js?ver=2.14.2
    • http://jessicareilley.com/…ediaelement/wp-mediaelement.js?ver=3.9.1
    • http://jessicareilley.com/…assets/js/js_composer_front.js?ver=3.7.3
  •  8,470
    Tahir replied

    Hey Jessica!

    Please use "Better Wordpress Minify" Plugin to minify the files since we have no know compatibility issues with it. 

    Thanks


    ThemeNectar Support Team 

  • Jessica replied

    Hi Tahir,

    Thanks for your quick response!  I had trouble with "Better WordPress Minfy", as well.  In the end, I stuck with the Autoptimize plugin and just excluded these scripts from optimization:

    jquery.js,jquery-migrate.min.js,modernizr.js,comment-reply.min.js,jquery.flexslider-min.js,jquery.flexslider-min.js

    Not sure if that may be helpful to others who run into this issue!

    Thanks,
    Jess