Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1281944
    Alejandro Jose S
    Participant

    Hello,

    Is there any way to load the slider (flexslider) shortcode before other parts of my site? (maybe by loading the script in the header instead of in the footer)

    I have that shortcode as the first element on the site and i’d really like it to load before the section that comes after it or at least not to take that much loading as it does now. you see, it first loads all the site and then loads the slider.

    just to be clear, i’m not asking for a performance tip, i just want to know if there’s a particular script that takes care of this shortcode and if it can be moved to the header or even to one of the elements that load before the site has loaded, even if it takes a bit longer for the site to load.

    the site is discovermessina.it

    thanks in advance!

    #1282530
    Rupok
    Member

    Hi there,

    Thanks for writing in! This slider is included as Cornerstone element, so there is no particular script for this that you can load earlier.

    Cheers!

    #1284348
    Alejandro Jose S
    Participant

    and can’t i just load all cornerstone elements in the header? is there a way to achieve that?

    #1284419
    Paul R
    Moderator

    Hi,

    It loads last because your images are big and it takes time to load.

    You can try pre-loading your images.

    http://www.templatemonster.com/blog/lazy-load-wordpress-plugins/

    Hope that helps.

    #1284501
    Alejandro Jose S
    Participant

    I’ll try that and also will further optimize the images and see if that solves the problem 🙂

    #1284564
    Paul R
    Moderator

    Please let us know how it goes.

    Thanks

  • <script> jQuery(function($){ $("#no-reply-1281944 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>