Forum Replies Created
-
Author
-
benyamindavisParticipant
Thanks Andrei,
This is what I’ve found:
Most of the lost connection issue took place when using Visual Composer, AND when trying to set an image as a featured image or in visual composer. It happened other times, too, but those seemed to be the big triggers, repeatedly.
I found one obscure post on a forum that mentioned the Heartbeat API that was tied into WordPress 3.6.X. I used a Heartbeat API plugin named “Heartbeat Control.” I just turned off all the sync settings wear WordPress was trying to keep posts (and other pages) in sync with the server by making backups. I haven’t had an issue with a lost connection since (about 4 days now). It still slows way down when using Visual Composer.
I am not on a managed hosting system and am wondering if that would help the speed of my site and backend work.
If you know a better way to fix the latency issue with Visual Composer, please let me know. I do not understand why it slows down so much when selecting media. My media is generally saved for web (optimized) and the slow issue always happens when media is being selected.
benyamindavisParticipantI have narrowed down the Lost Connection issue to Visual Composer. When I turn off JavaScript in my browser’s preferences, my site runs really fast! But, VC doesn’t work. I read that the code below can be added to the child theme functions.php file, but that did not help me, either.
add_action(‘admin_head’, function(){
$user_page = get_current_screen();
if( $user_page->post_type == ‘post’ || $user_page->post_type == ‘page’ ) {?>
<script type=”text/javascript”>
jQuery.ajaxSetup({
beforeSend : function(xhr, setting) {
if( setting.data == ‘action=wpb_single_image_src’ || setting.data == ‘action=heartbeat’) {
xhr.abort();
return false;
}
}
});
</script>
<?php}
});
________
This issue is really bogging everything down. Any help in how to fix it would be so appreciated.benyamindavisParticipantI’m sorry, but I have one more question:
Do you know of a reason why I would be continuously getting a “Lost Connection” message, or my site would be dragging very slow at times? It’s not all the time, only when I make a few updates. Then, it slows to a crawl or stops working for a few minutes. I’ve checked with my web host and they cannot see a problem from their side. I’ve seen some forums that suggest it could be WordPress code.
I was wondering if you have seen this and if you know of a solution.
Thanks again!
-
AuthorPosts