Behind the build

How we made ClipBot fast on phones (mobile performance 51 → 90)

Google rated ClipBot’s homepage 51 out of 100 on mobile. Without changing a single pixel of the design, we cut our fonts from 291 KB to 23 KB, bundled our styles and moved animations onto the GPU.

ClipBot team · · 6 min read

Most ClipBot links are opened on a phone, usually from a social app on mobile data. Google’s test gave our homepage 51 out of 100 on mobile. On desktop it scored 92. The site looked the same everywhere; it just made phones do a lot of unnecessary work.

51 → 87–95mobile performance score
291 KB → 23 KBof icon fonts
67 → 52 KBstylesheet (compressed)
0pixels changed

The rule: don’t change how it looks

The easy way to speed up a site is to strip it down. We didn’t want that. ClipBot’s look is part of the product. So every change had to be pixel-identical: we screenshotted 21 pages at phone and desktop sizes before and after each change, and compared them.

What was slowing phones down

1. Several stylesheets and font services before anything could appear

The browser had to fetch Bootstrap, our own styles, Font Awesome and Google Fonts, each from a different place, before it could draw the page. On a phone, every extra trip adds a noticeable delay.

Fix: one bundled stylesheet, with fonts hosted on our own server. One request instead of many.

2. 291 KB of icons to show 157 of them

Font Awesome ships thousands of icons. ClipBot uses 157. Phones were downloading all of them.

Icon font download
291 KBBefore
23 KBAfter

A build step scans the site for the icons we actually use and ships only those.

3. Styles for things we never use

Bootstrap includes styles for hundreds of components. We removed the rules for classes the site never uses, taking the stylesheet from 67 KB to 52 KB compressed, with the same pixel-identical check.

4. Animations that made the browser redo its layout

The floating streamer avatars on the homepage moved by changing their position on the page, which forces the browser to recalculate the layout every frame. They now move with GPU transforms, start after the page has loaded, and phones show seven instead of the full set.

5. Text that jumped when the font loaded

Pages first drew text in a fallback font, then shifted when Inter arrived. We tuned the fallback to match Inter’s letter widths, so nothing moves when the real font swaps in.

6. Downloads nobody saw

The clip player downloaded a 132 KB poster image even when it was hidden, and clip cards loaded full-size thumbnails. Hidden things now load nothing, and cards load small thumbnails.

The result

The ClipBot homepage on a phone
Same homepage, same design. It just loads much faster on a phone now.

The homepage now scores between 87 and 95 on mobile across repeated test runs, up from 51. Scores vary a little from run to run because the test simulates a slow phone on a slow network. The biggest single win: the largest thing on the page now appears much sooner.

Questions

Why does mobile page speed matter for a site like ClipBot?
Most people open ClipBot links on their phone, often from a social app on mobile data. Slow pages lose visitors before the first clip loads, and Google uses mobile speed in search rankings.
Did the redesign change how ClipBot looks?
No. Every change was checked to be pixel-identical on 21 pages at phone and desktop sizes before it shipped.
Share this post