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)
Martin
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
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
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
Thank you, Peter. It worked for me.
Regards,
Martin
Hey!
Great :)
Regards,
Peter