Contents
The site was fast on your machine or during testing, and after launch pages take seconds, slow down at busy times, or sometimes show a 508 error. Slowness lives in one of two places: before the server starts answering (server, app, database) or after it (page size, images, files). Measuring tells you which.
Measure before you change anything
curl -o /dev/null -s -w "TTFB %{time_starttransfer}s total %{time_total}s\n" https://example.com/
If TTFB is above roughly one second, the delay is in the server or app. If it’s low and the page is still slow, open PageSpeed Insights or the browser’s Network tab and look at the largest files.
The most likely causes, in order
1. The account hits its resource limits
Check: in cPanel open Resource Usage. Faults for CPU, memory or concurrent processes (Entry Processes) at the slow times mean the site is being slowed at its limit.
Fix: do less work per request with caching (step 2), switch off heavy plugins or jobs, and look for unwanted bot traffic in your stats. If faults remain on a clean site, that’s the sign you need a bigger plan.
2. There’s no cache
Check: every visit builds the page from scratch and queries the database.
Fix: in WordPress, turn on the LiteSpeed Cache plugin (speed up WordPress). In Next.js, make pages that don’t change static or use revalidate. In your own apps, cache repeated query results in memory for a few minutes.
3. The app runs in development mode
What you see: next dev, vite or npm run dev serves the site, NODE_ENV isn’t production, or Django has DEBUG=True.
Fix: build the project and run the production version. In Setup Node.js App choose Application mode: Production; in Django set DEBUG=False. Development mode is much slower and uses more memory.
4. Heavy images and files
What you see: low TTFB and a page weighing several megabytes.
Fix: resize images and convert them to WebP (optimize images), lazy-load images below the fold (loading="lazy"), and remove unused libraries.
5. Slow queries or API calls on every page
What you see: high TTFB with no faults in Resource Usage.
Fix: look for calls to outside services (AI models, payment APIs) made on every page load, and move them to the background or cache their results. Index the columns you search by, and fetch data in pages instead of every row.
How to confirm it’s fixed
Measure TTFB again with the same command and compare, rerun PageSpeed Insights, and watch Resource Usage for a full day after the change.
Prevention
- Measure speed before and after launch and keep the numbers for comparison.
- Turn caching on from day one, and use a CDN for static files if your visitors are far away.
- Read the website speed guide before adding heavy features.
On ArabyHost
ArabyHost sites run on LiteSpeed with LiteSpeed Cache for WordPress, and each account has its own resource limits through CloudLinux (LVE), visible under Resource Usage in cPanel. The servers are in Germany, so caching and a CDN help distant visitors. Araby AI reads the error logs and explains what is slowing the site, and if it needs more resources, compare plans on the pricing page.
FAQ
How do I tell whether the hosting or the site is slow?
Measure TTFB for a small static file, such as an image or `robots.txt`, then for a dynamic page. If the static file is fast and the page is slow, the delay is in code or the database, not the network.
Does the server's distance matter?
Somewhat: every request makes a round trip. Caching, fewer files and a CDN for static assets reduce that effect; a page that's slow because of its code isn't fixed by distance.
The first page is slow and then the site is fast. Why?
For Node.js and Python apps, Passenger starts the app on the first request after an idle period, so that request waits. In WordPress, the cached copy is built on the first visit. Keep app startup light and turn caching on.
Will a bigger plan fix it?
Only if Resource Usage shows faults from hitting limits. If the delay comes from heavy images or a slow query, it stays on any plan.