• Hi, I have a website which seems to have an issue with loading on mobile devices. It does eventually load but can take 60+seconds to load. Sometimes it loads fast, but other times it does not. I have disabled the theme (well, switched to “Twenty Sixteen” and disabled all plugins.

    I’m not sure how to continue trouble-shooting. I’m wondering if it’s possible something is slowing down the database retrieval, and then after the database query is cached subsequent loads are quicker until the database cache expires? I don’t understand that side of wordpress or mysql to understand properly.

    I created a copy of the site on a different server to test. The live site is on a windows iis server, the copy is on a linux apache server (I want to migrate the live site to the linux one once I figure this out).

    Any suggestions on where I should look next?

    Thank you very much for your advice, I’ll take whatever you can give!

Viewing 4 replies - 1 through 4 (of 4 total)
  • So, this only happens on mobile but not on desktop? Could you post a link to the page in question?

    It would seem a bit strange for this to be query related, especially while you’re on TwentySixteen and disabled all plugins.

    I can recommend plugins like Query Monitor or Developer to help you with debugging this issue and confirm that it truly is database related.

    Thread Starter acann

    (@acann)

    Thanks for responding Jeffrey, I can try installing Query Monitor and see if it shows anything. Yes it seems to only happen when I access from a mobile phone (iPhone 5 is what I have tested), but it doesn’t happen every time.

    You can access it via this link but you won’t be able to navigate through the site since any of the links you’d click would take you to the live server, so you’ll only be able to see the homepage (although the issue exists on the live site as well).

    https://162.215.253.61

    If you have any further suggestions I’m grateful for the help, my host has somewhat wiped their hands of it since it happens on both the old and new server (so the point out it must be the website). It’s like every once in a while something slows everything down, when the issue happens the site does load eventually, but can take 60+ seconds (ex. the header image will be missing, and after 20 seconds it will load, then the next picture, etc). Then other times it seems to load the whole page in a few seconds. Desktop seems fine although once in a while it will take a bit of extra time (say the average is 4-6 seconds, once in a while it might take 9-10 seconds).

    Thanks again for responding!

    Thread Starter acann

    (@acann)

    I can’t really see anything in query analyzer since it only displays results if you are logged in so I can’t see what it shows for loads on my phone. Sometimes clicking around through my admin area there is a http request error relating to wp-cron which says

    “Operation timed out after 1001 milliseconds with 0 bytes received”

    But it doesn’t appear to do anything or cause unwanted behaviour in the screen.

    I tried to add this line of code to a text widget in my footer, also tried in the footer scripts area, but it doesn’t seem to show the variables, just the text “queries in seconds.”. Am I doing it wrong?

    <?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.

    I was hoping this way I could at least see what it says when the mobile load takes extremely long.

    By the way, since the lack of theme and plugins didn’t change anything, I re-enabled them all. Except I left Jetpack and Hellobar off, and for W3TC I re-enabled it simply to clear the page cache then deactivated it again (i’ve had it off during all testing but thought maybe something sitting in that cache folder was interfering).

    Thread Starter acann

    (@acann)

    I added a footer.php in the child and added the code there, now it appears at the bottom. I just ran a test on an iPhone 5, Chrome and Safari. First time the header image took about a half minute to fully load (rest of page had loaded), but the result at the bottom says 134 queries in 0.703 seconds. Tried again (closed and reopened Chrome) and this time it loaded the header and rest of page but got stuck on the picture for “latest post”, still showed quick query loading (in fact it showed the entire page including the query results before that last picture loaded).

    It’s almost like it gets stuck at odd places…I don’t get it. Seems like the queries are done when the issue comes up.

    So, I don’t know…I don’t get it. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mobile Long Loading Times – No Theme/Plugins’ is closed to new replies.