B2B export site performance: homepage TTFB 17.96s → 0.94s
An LED lighting manufacturer · Visit website ↗
We diagnosed and optimized a PHP B2B site hosted in Germany, layer by layer through the database, video, images and front-end assets, cutting homepage response time and page weight.

Challenge
The site ran in Germany but its database sat in Hong Kong, so every request crossed continents. The banner video was nearly 40MB, images were not responsive, mobile first paint took tens of seconds and some admin queries hit 502s.
Approach
- 1Moved the database from Hong Kong to the German server, removing intercontinental query latency
- 2Transcoded the banner video from HEVC to H.264 720p, with a poster image and lazy loading
- 3Image CDN resizing with srcset and WebP, width / height placeholders, and loading on viewport entry
- 4Merged 17 JS files into 4 with defer, versioned static assets for long CDN caching, restored font-display: swap
- 5Scanned 187 pages for desktop and mobile JS errors

Results

- PHP
- ThinkPHP
- MariaDB
- Nginx / Brotli
- Alibaba Cloud CDN
- Lighthouse
FXTech
