Menu

1 / 3

Speeding up a slow small-business site on cheap shared hosting

DEV Community: html·LeadReef Dev·8 days ago
#GBFBA8pM
#devto2#devto#dev#font#iframe
Reading 0:00
15s threshold

A lot of small business sites live on the cheapest shared hosting plan the owner could find in 2015. No SSH, no CDN config, a control panel with a file manager, and maybe a WordPress install with a page builder on top. Then the owner asks why the site feels slow on their phone.

The good news: on most of these sites, the server isn't the main problem. The page is. A 4 MB hero photo, a five-slide carousel, three font families and a chat widget will make any host look bad. You can fix nearly all of that without touching the server, and the few server-side fixes that help usually come down to a handful of lines in .htaccess .

This is the order we work in when we speed up a site like this, with the code for each step.

Measure first, with the right numbers

Run the homepage through PageSpeed Insights and read the two halves separately. The top part is field data from real Chrome users, shown only if the site has enough traffic. The diagnostics below it come from a single simulated lab load.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.