Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Page Load Time Fluctuation

Featured Replies

Hi,

 

I've been working on a new development and I've found an increase in load time fluctuation. The site is on a vps from Heart Internet and to test the load time I use;

 

<?php $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $start = $time; ?>

<?php $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $start), ; echo '<!-- Page generated in '.$total_time.' seconds. -->'; ?>

with the first before anything and the last bit just before the bottom body. The php on the page itself is quite extensive but saying that it all runs from 1 array via include_once.

 

The problem is I am getting load times of between 0.9 all the way to 13.5 secs ish with the same code. I am the only one using this server at the moment, fully locked off with password, robots block etc so I have no idea why the same page would take so long.

 

Any ideas or is it just a poor host? Just thought I'd check before rattling the support cage.

 

Ta

As it's a VPS it does sound as if it's something server side.

 

1. Submit a ticket with Heart to see if there are any issues on the server

2. Test the code on a different sever to see if it's the same

  • Author

Good thinking batman, will give that a go and rattle the old support cage. I wasn't sure about vps, first time I've ever seen this sort of behaviour.

 

Update: Set up some shared cloud space on another host and it seems to always load under 3 seconds (normally around 1 - 1.5 ... obviously there is always some fluctuation but I think 13 secs might be a bit excessive with the vps ... off to support!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.