Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #261714

    Hi,
    Could you please help me to find out the cause of slow down of my website? It happens, when I turn on permalinks in the Enfold theme. After that the transitions between pages are really slow. (17s according to Chrome tools)

    Timeline

    Martin

    • This topic was modified 9 years, 11 months ago by martinbose.
    #262061

    Hi martinbose!

    As far as I know when you get a major slow down only when using pretty permalinks its cause by the server having poor performance. You can check the codex on permalinks and see if anything there helps but from our end there isn’t much we would be able to advise on.

    http://codex.wordpress.org/Using_Permalinks

    Cheers!
    Devin

    #262775

    Thank you, Devin. I understand your point. May I ask you one more question? I noticed when I load a page which has a few videos on it, all the videos preload some of its content by default. Is there a way I can turn off this preload feature as it takes time to load these and seems has an effect on page load speed. Ideally, I would like to load video only in case if the user explicitly presses a play button.

    Cheers,
    Martin

    • This reply was modified 9 years, 11 months ago by martinbose.
    #263178

    Hey!

    You can try to set a “preload” attribute to deactivate the preloading feature. Open up wp-content/themes/enfold/framework/php/function-set-avia-frontend.php and replace:

    
    $output .= '<video class="avia_video" '.$image.' controls id="'.$uid.'" >';
    

    with

    
    $output .= '<video preload="none" class="avia_video" '.$image.' controls id="'.$uid.'" >';
    

    If you’re using a child theme copy the entire avia_html5_video_embed function into your child theme functions.php file and modify the code line there.

    Cheers!
    Peter

    #263774

    Thank you, Peter. It worked for me.

    Regards,
    Martin

    #263784

    Hey!

    Great :)

    Regards,
    Peter

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