-
AuthorPosts
-
May 8, 2014 at 11:17 am #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)
Martin
-
This topic was modified 11 years, 5 months ago by
martinbose.
May 9, 2014 at 12:43 am #262061Hi 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!
DevinMay 10, 2014 at 3:06 pm #262775Thank 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 11 years, 5 months ago by
martinbose.
May 12, 2014 at 8:37 am #263178Hey!
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!
PeterMay 13, 2014 at 7:43 am #263774Thank you, Peter. It worked for me.
Regards,
MartinMay 13, 2014 at 8:31 am #263784Hey!
Great :)
Regards,
Peter -
This topic was modified 11 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
